Record Class GitOptions.EnvChange
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.git.api.GitOptions.EnvChange
- Enclosing class:
GitOptions
public static record GitOptions.EnvChange(Map<String,String> set, Set<String> remove, Map<String,String> setIfAbsent)
extends Record
Changes to the environment of a git process.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static GitOptions.EnvChangenone()No change to the environment.remove()Returns the value of theremoverecord component.set()Returns the value of thesetrecord component.Returns the value of thesetIfAbsentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnvChange
Creates an instance of aEnvChangerecord class.- Parameters:
set- the value for thesetrecord componentremove- the value for theremoverecord componentsetIfAbsent- the value for thesetIfAbsentrecord component
-
-
Method Details
-
none
No change to the environment. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
set
Returns the value of thesetrecord component.- Returns:
- the value of the
setrecord component
-
remove
Returns the value of theremoverecord component.- Returns:
- the value of the
removerecord component
-
setIfAbsent
Returns the value of thesetIfAbsentrecord component.- Returns:
- the value of the
setIfAbsentrecord component
-