Record Class GitFlowPlanner.Facts
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.gitflow.GitFlowPlanner.Facts
- Record Components:
local- the local branchesremote- the branches of the remotes by remote namehasCommits- whether there is a commit at allcurrent- thegitflow.*keys written now
- Enclosing class:
GitFlowPlanner
public static record GitFlowPlanner.Facts(Set<String> local, Map<String,Set<String>> remote, boolean hasCommits, Map<String,String> current)
extends Record
The facts of a repository the plan depends on.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrent()Returns the value of thecurrentrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasCommitsrecord component.final inthashCode()Returns a hash code value for this object.local()Returns the value of thelocalrecord component.remote()Returns the value of theremoterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Facts
public Facts(Set<String> local, Map<String, Set<String>> remote, boolean hasCommits, Map<String, String> current) Creates an instance of aFactsrecord class.- Parameters:
local- the value for thelocalrecord componentremote- the value for theremoterecord componenthasCommits- the value for thehasCommitsrecord componentcurrent- the value for thecurrentrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
local
Returns the value of thelocalrecord component.- Returns:
- the value of the
localrecord component
-
remote
Returns the value of theremoterecord component.- Returns:
- the value of the
remoterecord component
-
hasCommits
public boolean hasCommits()Returns the value of thehasCommitsrecord component.- Returns:
- the value of the
hasCommitsrecord component
-
current
Returns the value of thecurrentrecord component.- Returns:
- the value of the
currentrecord component
-