public static class RepositoryFragment.ImplementedRepositoryFragment<T> extends Object implements RepositoryFragment<T>
RepositoryFragment.ImplementedRepositoryFragment<T>, RepositoryFragment.StructuralRepositoryFragment<T>
Constructor and Description |
---|
ImplementedRepositoryFragment(Optional<Class<T>> interfaceClass,
T implementation)
Creates a new
RepositoryFragment.ImplementedRepositoryFragment for the given interface class and implementation. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<T> |
getImplementation() |
Class<?> |
getSignatureContributor() |
int |
hashCode() |
String |
toString() |
RepositoryFragment<T> |
withImplementation(T implementation)
Implement a structural
RepositoryFragment given its implementation object. |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
hasMethod, implemented, implemented, methods, structural
public ImplementedRepositoryFragment(Optional<Class<T>> interfaceClass, T implementation)
RepositoryFragment.ImplementedRepositoryFragment
for the given interface class and implementation.interfaceClass
- must not be null.implementation
- must not be null.public Class<?> getSignatureContributor()
getSignatureContributor
in interface RepositoryFragment<T>
RepositoryFragment
.public Optional<T> getImplementation()
getImplementation
in interface RepositoryFragment<T>
Optional.empty()
.public RepositoryFragment<T> withImplementation(T implementation)
RepositoryFragment
RepositoryFragment
given its implementation
object. Returns an implemented
RepositoryFragment
.withImplementation
in interface RepositoryFragment<T>
implementation
- must not be null.RepositoryFragment
for implementation
.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.