예제 #1
0
  static boolean equals(final InstanceIdentifierTypeDefinition type, final Object obj) {
    if (type == obj) {
      return true;
    }

    final InstanceIdentifierTypeDefinition other =
        castIfEquals(InstanceIdentifierTypeDefinition.class, type, obj);
    return other != null && type.requireInstance() == other.requireInstance();
  }
예제 #2
0
 static int hashCode(final InstanceIdentifierTypeDefinition type) {
   return Objects.hash(
       type.getPath(),
       type.getUnknownSchemaNodes(),
       type.getBaseType(),
       type.getUnits(),
       type.getDefaultValue(),
       type.requireInstance());
 }
예제 #3
0
 static String toString(final InstanceIdentifierTypeDefinition type) {
   return toStringHelper(type).add("requireInstance", type.requireInstance()).toString();
 }