Interface MappableTypeModel
public interface MappableTypeModel
A representation of an entity type that can be mapped to an index.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionStream<? extends MappableTypeModel> Stream<? extends MappableTypeModel> booleaninthashCode()booleanbooleanisSubTypeOf(MappableTypeModel superTypeCandidate) name()toString()
-
Method Details
-
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
- 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
- Overrides:
equalsin classObject- Returns:
trueifobjis aMappableTypeModelreferencing the exact same type with the exact same exposed metadata.
-
hashCode
int hashCode()
-