Interface MappableTypeModel
-
public interface MappableTypeModelA representation of an entity type that can be mapped to an index.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stream<? extends MappableTypeModel>ascendingSuperTypes()Stream<? extends MappableTypeModel>descendingSuperTypes()booleanequals(Object obj)inthashCode()booleanisAbstract()booleanisSubTypeOf(MappableTypeModel superTypeCandidate)Stringname()StringtoString()
-
-
-
Method Detail
-
name
String name()
- Returns:
- A human-readable name for this type.
-
isAbstract
boolean isAbstract()
- Returns:
trueif this type is abstract, i.e. it cannot be instantiated as-is (but may be as a subtype).falseotherwise.
-
isSubTypeOf
boolean isSubTypeOf(MappableTypeModel superTypeCandidate)
- Parameters:
superTypeCandidate- Another type that should be assessed as a supertype.- Returns:
trueif this type is a subtype ofsuperTypeCandidate, i.e. ifsuperTypeCandidateis mentioned inascendingSuperTypes().falseotherwise.
-
ascendingSuperTypes
Stream<? extends MappableTypeModel> ascendingSuperTypes()
- Returns:
- A stream of all supertypes of this type, from the most specific (this type)
to the least specific (
Object).
-
descendingSuperTypes
Stream<? extends MappableTypeModel> descendingSuperTypes()
- Returns:
- A stream of all supertypes of this type, from the least specific (
Object) to the most specific (this type).
-
toString
String toString()
-
equals
boolean equals(Object obj)
- Overrides:
equalsin classObject- Returns:
trueifobjis aMappableTypeModelreferencing the exact same type with the exact same exposed metadata.
-
-