T
- The type of elements which were abstracted.public interface Abstracting<T extends Resolver>
SimpleAbstracting
for an interface
with default implementations of some methods.Modifier and Type | Method and Description |
---|---|
java.util.Collection<T> |
abstracted()
Returns all the elements which are being abstracted by this object.
|
java.util.Optional<java.lang.Object> |
getAbstractionReason()
Returns the reason for abstraction.
|
void |
setAbstractionReason(java.lang.Object reason)
Sets the reason for abstraction.
|
java.util.Collection<T> abstracted()
java.util.Optional<java.lang.Object> getAbstractionReason()
setAbstractionReason(Object)
has been called with
a non-null object, the returned result will be present.void setAbstractionReason(java.lang.Object reason)
reason
- An object representing the reason for abstraction. This reason can be of any type.