Record Class ProfilesProvider.ProfileAction
java.lang.Object
java.lang.Record
pro.gravit.launchserver.auth.profiles.ProfilesProvider.ProfileAction
- Enclosing class:
ProfilesProvider
public static record ProfilesProvider.ProfileAction(ProfilesProvider.ProfileAction.ProfileActionType type, String source, String target, Supplier<InputStream> input, Consumer<OutputStream> output, boolean deleteSource)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionProfileAction(ProfilesProvider.ProfileAction.ProfileActionType type, String source, String target, Supplier<InputStream> input, Consumer<OutputStream> output, boolean deleteSource) Creates an instance of aProfileActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedeleteSourcerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.output()Returns the value of theoutputrecord component.source()Returns the value of thesourcerecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.upload(Supplier<InputStream> input, String target)
-
Constructor Details
-
ProfileAction
public ProfileAction(ProfilesProvider.ProfileAction.ProfileActionType type, String source, String target, Supplier<InputStream> input, Consumer<OutputStream> output, boolean deleteSource) Creates an instance of aProfileActionrecord class.- Parameters:
type- the value for thetyperecord componentsource- the value for thesourcerecord componenttarget- the value for thetargetrecord componentinput- the value for theinputrecord componentoutput- the value for theoutputrecord componentdeleteSource- the value for thedeleteSourcerecord component
-
-
Method Details
-
upload
public static ProfilesProvider.ProfileAction upload(Path source, String target, boolean deleteSource) -
upload
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
deleteSource
public boolean deleteSource()Returns the value of thedeleteSourcerecord component.- Returns:
- the value of the
deleteSourcerecord component
-