Class NamedType

  • All Implemented Interfaces:

    public final class NamedType
    extends java.lang.Object
    Simple container class for types with optional logical name, used as external identifier
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
      NamedType​(java.lang.Class<?> c)  
      NamedType​(java.lang.Class<?> c, java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Equality is defined based on class and name
      java.lang.String getName()  
      java.lang.Class<?> getType()  
      int hashCode()  
      boolean hasName()  
      void setName​(java.lang.String name)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NamedType

        public NamedType​(java.lang.Class<?> c)
      • NamedType

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

      • getType

        public java.lang.Class<?> getType()
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • hasName

        public boolean hasName()
      • equals

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

        public int hashCode()
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object