public interface IdentifierAccessor
TargetAwareIdentifierAccessor
Modifier and Type | Method and Description |
---|---|
Optional<Object> |
getIdentifier()
Returns the value of the identifier.
|
default Object |
getRequiredIdentifier()
Returns the identifier of the underlying instance.
|
Optional<Object> getIdentifier()
default Object getRequiredIdentifier()
TargetAwareIdentifierAccessor
or override this method to add more context to the exception being thrown in
case of the absence of an identifier.IllegalStateException
- in case no identifier could be retrieved.Copyright © 2011-2016–2017 Pivotal Software, Inc.. All rights reserved.