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

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