Class Accessor
java.lang.Object
org.springframework.data.projection.Accessor
Helper value to abstract an accessor.
- Since:
- 1.13
- Author:
- Oliver Gierke, Christoph Strobl, Johannes Englmeier
-
Constructor Details
-
Accessor
- Parameters:
method
- must not be null.- Throws:
IllegalArgumentException
- in case the given method is not an accessor method.
-
-
Method Details
-
isGetter
public boolean isGetter()Returns whether the accessor is a getter.- Returns:
-
isSetter
public boolean isSetter()Returns whether the accessor is a setter.- Returns:
-
getPropertyName
Returns the name of the property this accessor handles.- Returns:
- will never be null.
-