示例#1
0
  static boolean equals(final BitsTypeDefinition type, final Object obj) {
    if (type == obj) {
      return true;
    }

    final BitsTypeDefinition other = castIfEquals(BitsTypeDefinition.class, type, obj);
    return other != null && type.getBits().equals(other.getBits());
  }
示例#2
0
 static int hashCode(final BitsTypeDefinition type) {
   return Objects.hash(
       type.getPath(),
       type.getUnknownSchemaNodes(),
       type.getBaseType(),
       type.getUnits(),
       type.getDefaultValue(),
       type.getBits());
 }
示例#3
0
 static String toString(final BitsTypeDefinition type) {
   return toStringHelper(type).add("bits", type.getBits()).toString();
 }