예제 #1
0
 private static int basicHashCode(final TypeDefinition<?> type) {
   return Objects.hash(
       type.getPath(),
       type.getUnknownSchemaNodes(),
       type.getBaseType(),
       type.getUnits(),
       type.getDefaultValue());
 }
예제 #2
0
 private static ToStringHelper toStringHelper(final TypeDefinition<?> type) {
   return MoreObjects.toStringHelper(type)
       .omitNullValues()
       .add("baseType", type.getBaseType())
       .add("default", type.getDefaultValue())
       .add("description", type.getDescription())
       .add("path", type.getPath())
       .add("reference", type.getReference())
       .add("status", type.getStatus())
       .add("units", type.getUnits());
 }