Record Class WorkingSet.Member
java.lang.Object
java.lang.Record
network.ike.workspace.WorkingSet.Member
- Record Components:
name- the subproject name, or the directory name for the workspace root and for a single repositorydirectory- the git working tree's directorykind- whether this member is a declared subproject or the workspace root (aggregator)
- Enclosing class:
WorkingSet
public static record WorkingSet.Member(String name, Path directory, WorkingSet.Member.Kind kind)
extends Record
One git working tree in a
WorkingSet.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe role aWorkingSet.Memberplays in itsWorkingSet. -
Constructor Summary
ConstructorsConstructorDescriptionMember(String name, Path directory, WorkingSet.Member.Kind kind) Creates an instance of aMemberrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkingSet.Memberaggregator(String name, Path directory) Create aWorkingSet.Member.Kind.AGGREGATORmember.Returns the value of thedirectoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanWhether this member is the workspace root (aggregator).kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.static WorkingSet.Membersubproject(String name, Path directory) Create aWorkingSet.Member.Kind.SUBPROJECTmember.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Member
-
-
Method Details
-
subproject
Create aWorkingSet.Member.Kind.SUBPROJECTmember.- Parameters:
name- the subproject namedirectory- the subproject's git working tree- Returns:
- a subproject member
-
aggregator
Create aWorkingSet.Member.Kind.AGGREGATORmember.- Parameters:
name- the directory name of the workspace root (or single repository)directory- the workspace root's git working tree- Returns:
- an aggregator member
-
isAggregator
public boolean isAggregator()Whether this member is the workspace root (aggregator).- Returns:
trueifkind()isWorkingSet.Member.Kind.AGGREGATOR
-
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). -
name
-
directory
-
kind
-