Interface MappableTypeModel
-
- All Known Subinterfaces:
PojoRawTypeModel<T>
- All Known Implementing Classes:
AbstractPojoHCAnnRawTypeModel
,AbstractPojoRawTypeModel
public interface MappableTypeModel
A 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()
boolean
equals(Object obj)
int
hashCode()
boolean
isAbstract()
boolean
isSubTypeOf(MappableTypeModel superTypeCandidate)
String
name()
String
toString()
-
-
-
Method Detail
-
name
String name()
- Returns:
- A human-readable name for this type.
-
isAbstract
boolean isAbstract()
- Returns:
true
if this type is abstract, i.e. it cannot be instantiated as-is (but may be as a subtype).false
otherwise.
-
isSubTypeOf
boolean isSubTypeOf(MappableTypeModel superTypeCandidate)
- Parameters:
superTypeCandidate
- Another type that should be assessed as a supertype.- Returns:
true
if this type is a subtype ofsuperTypeCandidate
, i.e. ifsuperTypeCandidate
is mentioned inascendingSuperTypes()
.false
otherwise.
-
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:
equals
in classObject
- Returns:
true
ifobj
is aMappableTypeModel
referencing the exact same type with the exact same exposed metadata.
-
-