Class NamedType

  • All Implemented Interfaces:

    public final class NamedType
    extends Object
    implements Serializable
    Simple container class for types with optional logical name, used as external identifier
    See Also:
    Serialized Form
    • Constructor Detail

      • NamedType

        public NamedType​(Class<?> c)
      • NamedType

        public NamedType​(Class<?> c,
                         String name)
    • Method Detail

      • getType

        public Class<?> getType()
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • hasName

        public boolean hasName()
      • equals

        public boolean equals​(Object o)
        Equality is defined based on class and name
        equals in class Object
      • hashCode

        public int hashCode()
        hashCode in class Object