Class TypeCollectionImpl
java.lang.Object
org.aksw.jenax.reprogen.descriptor.impl.TypeBase
org.aksw.jenax.reprogen.descriptor.impl.TypeCollectionImpl
- All Implemented Interfaces:
SimpleType,TypeCollection
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanClass<?>inthashCode()booleanisList()booleanisSet()stricterType(SimpleType other) Attempt to yield the stricter type of this and the other.Methods inherited from class org.aksw.jenax.reprogen.descriptor.impl.TypeBase
asCollection, asScalar, isCollection, isScalarMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.jenax.reprogen.descriptor.impl.SimpleType
asCollection, asScalar, isCollection, isScalar
-
Field Details
-
collectionClass
-
itemType
-
-
Constructor Details
-
TypeCollectionImpl
-
-
Method Details
-
getCollectionClass
- Specified by:
getCollectionClassin interfaceTypeCollection
-
getItemType
- Specified by:
getItemTypein interfaceTypeCollection
-
stricterType
Description copied from interface:SimpleTypeAttempt to yield the stricter type of this and the other. For example, if B extends A, Type[A].stricterType(Type[B]) yields B. Type[Collection].stricterType(Set)] yields Set If there is no common type, null is returned- Specified by:
stricterTypein interfaceSimpleType- Returns:
-
isList
public boolean isList()- Specified by:
isListin interfaceTypeCollection
-
isSet
public boolean isSet()- Specified by:
isSetin interfaceTypeCollection
-
hashCode
public int hashCode() -
equals
-