Lines Matching defs:oid
45 private final int[] oid;
65 * @param oid - array of integers
67 * @throws NullPointerException - if oid is null
68 * @throws IllegalArgumentException - if oid is invalid
70 public ObjectIdentifier(int[] oid) {
72 validateOid(oid);
74 this.oid = oid;
80 * @param oid - array of integers
84 * @throws NullPointerException - if oid is null
85 * @throws IllegalArgumentException - if oid is invalid
87 public ObjectIdentifier(int[] oid, String name, Object oidGroup) {
88 this(oid);
102 * @return oid
105 return oid;
139 return Arrays.equals(oid, ((ObjectIdentifier) o).oid);
145 * @return oid as string
157 * @return oid as string
161 StringBuffer sb = new StringBuffer(4 * oid.length);
163 for (int i = 0; i < oid.length - 1; ++i) {
164 sb.append(oid[i]);
167 sb.append(oid[oid.length - 1]);
178 hash = hashIntArray(oid);
186 * @param oid - oid as array of integers
187 * @throws NullPointerException - if oid is null
188 * @throws IllegalArgumentException - if oid is invalid
190 public static void validateOid(int[] oid) {
192 if (oid == null) {
196 if (oid.length < 2) {
201 if (oid[0] > 2) {
204 } else if (oid[0] != 2 && oid[1] > 39) {
213 * @param oid - array of integers