Class RepositoryFragment.ImplementedRepositoryFragment<T>
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFragment.ImplementedRepositoryFragment<T>
- All Implemented Interfaces:
RepositoryFragment<T>
- Enclosing interface:
- RepositoryFragment<T>
public static class RepositoryFragment.ImplementedRepositoryFragment<T>
extends Object
implements RepositoryFragment<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.repository.core.support.RepositoryFragment
RepositoryFragment.ImplementedRepositoryFragment<T>, RepositoryFragment.StructuralRepositoryFragment<T>
-
Constructor Summary
ConstructorDescriptionImplementedRepositoryFragment
(Optional<Class<T>> interfaceClass, T implementation) Creates a newRepositoryFragment.ImplementedRepositoryFragment
for the given interface class and implementation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Class<?>
int
hashCode()
toString()
withImplementation
(T implementation) Implement a structuralRepositoryFragment
given itsimplementation
object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.data.repository.core.support.RepositoryFragment
hasMethod, methods
-
Constructor Details
-
ImplementedRepositoryFragment
Creates a newRepositoryFragment.ImplementedRepositoryFragment
for the given interface class and implementation.- Parameters:
interfaceClass
- must not be null.implementation
- must not be null.
-
-
Method Details
-
getSignatureContributor
- Specified by:
getSignatureContributor
in interfaceRepositoryFragment<T>
- Returns:
- the class/interface providing signatures for this
RepositoryFragment
.
-
getImplementation
- Specified by:
getImplementation
in interfaceRepositoryFragment<T>
- Returns:
- the optional implementation. Only available for implemented fragments. Structural fragments return always
Optional.empty()
.
-
withImplementation
Description copied from interface:RepositoryFragment
Implement a structuralRepositoryFragment
given itsimplementation
object. Returns an implementedRepositoryFragment
.- Specified by:
withImplementation
in interfaceRepositoryFragment<T>
- Parameters:
implementation
- must not be null.- Returns:
- a new implemented
RepositoryFragment
forimplementation
.
-
toString
-
equals
-
hashCode
public int hashCode()
-