Class YCollectionType


public class YCollectionType extends YType
  • Constructor Details

  • Method Details

    • getDefaultMetaTypeCode

      protected String getDefaultMetaTypeCode()
      Specified by:
      getDefaultMetaTypeCode in class YTypeSystemElement
    • validate

      public void validate()
      Description copied from class: YNameSpaceElement
      Validates the element. This should check whether or not lazy references can be resolved or any data is missing.
      Overrides:
      validate in class YType
    • getElementTypeCode

      public String getElementTypeCode()
    • getTypeOfCollection

      public YCollectionType.TypeOfCollection getTypeOfCollection()
    • getElementType

      public YType getElementType()
    • getJavaClassName

      public String getJavaClassName()
      Specified by:
      getJavaClassName in class YType
    • isAssignableFrom

      public boolean isAssignableFrom(YType type)
      Tests whether this collection type is assignable from another collection type. This is only true if this type's element type is assignable from the other collection type's element type and the type of collections are assignable.
      Specified by:
      isAssignableFrom in class YType
    • equals

      public boolean equals(Object type)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object