Record Class RotationPolicy.KeyDirectory
java.lang.Object
java.lang.Record
org.springframework.integration.file.remote.aop.RotationPolicy.KeyDirectory
- Record Components:
key
- the for entrydirectory
- the directory for entry
- Enclosing interface:
RotationPolicy
-
Constructor Summary
ConstructorsConstructorDescriptionKeyDirectory
(Object key, String directory) Creates an instance of aKeyDirectory
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectory
record component.final boolean
Indicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.getKey()
Deprecated, for removal: This API element is subject to removal in a future version.if favor ofkey()
final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
KeyDirectory
-
-
Method Details
-
getKey
Deprecated, for removal: This API element is subject to removal in a future version.if favor ofkey()
- Returns:
- the key
-
getDirectory
Deprecated, for removal: This API element is subject to removal in a future version.if favor ofdirectory()
()}- Returns:
- the directory
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
key
-
directory
-
directory()
()}