Exemplo n.º 1
0
  static boolean equals(final UnionTypeDefinition type, final Object obj) {
    if (type == obj) {
      return true;
    }

    final UnionTypeDefinition other = castIfEquals(UnionTypeDefinition.class, type, obj);
    return other != null && type.getTypes().equals(other.getTypes());
  }
Exemplo n.º 2
0
 static int hashCode(final UnionTypeDefinition type) {
   return Objects.hash(
       type.getPath(),
       type.getUnknownSchemaNodes(),
       type.getBaseType(),
       type.getUnits(),
       type.getDefaultValue(),
       type.getTypes());
 }
Exemplo n.º 3
0
 static String toString(final UnionTypeDefinition type) {
   return toStringHelper(type).add("types", type.getTypes()).toString();
 }