Class PropertyType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PropertyType>

    public class PropertyType
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<PropertyType>
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the openGql.grammar.PropertyType type.
      • NAME

        public static final Name NAME
        Name of the openGql.grammar.PropertyType.name field.
      • TYPED

        public static final Name TYPED
        Name of the openGql.grammar.PropertyType.typed field.
      • VALUE_TYPE

        public static final Name VALUE_TYPE
        Name of the openGql.grammar.PropertyType.valueType field.
      • name

        public final java.lang.String name
      • typed

        public final Optional<java.lang.Void> typed
      • valueType

        public final ValueType valueType
    • Constructor Detail

      • PropertyType

        public PropertyType​(java.lang.String name,
                            Optional<java.lang.Void> typed,
                            ValueType valueType)
        Constructs an immutable PropertyType.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(PropertyType other)
        Specified by:
        compareTo in interface java.lang.Comparable<PropertyType>
      • withName

        public PropertyType withName​(java.lang.String name)
        Returns a copy of this PropertyType with name replaced.