Package com.helger.commons.type
Interface IHasObjectType
- All Known Subinterfaces:
ITypedObject<IDTYPE>
- All Known Implementing Classes:
TypedObject
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Base interface for all objects having a certain
ObjectType.- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault Stringdefault booleanhasObjectType(ObjectType aOT) Check if this object has the providedObjectType.
-
Method Details
-
getObjectType
- Returns:
- The type of the object. Never
null.
-
getObjectTypeName
- Returns:
- The name of the object type. Neither
nullnor empty.
-
hasObjectType
Check if this object has the providedObjectType.- Parameters:
aOT- The object type to check. May benull.- Returns:
trueif this object has the passed ObjectType,falseotherwise.
-