Record Class ScaffoldMojoSupport.Counts
java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.ScaffoldMojoSupport.Counts
- Record Components:
install- number ofTierAction.WritewithTierAction.Write.Kind.INSTALLupdate- number ofTierAction.WritewithTierAction.Write.Kind.UPDATEskip- number ofTierAction.SkipupToDate- number ofTierAction.UpToDateuserManaged- number ofTierAction.UserManaged
- Enclosing class:
ScaffoldMojoSupport
public static record ScaffoldMojoSupport.Counts(int install, int update, int skip, int upToDate, int userManaged)
extends Record
Aggregate counts of each action kind in a plan.
-
Constructor Summary
ConstructorsConstructorDescriptionCounts(int install, int update, int skip, int upToDate, int userManaged) Creates an instance of aCountsrecord class. -
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.booleanWhether any write action is planned.intinstall()Returns the value of theinstallrecord component.intskip()Returns the value of theskiprecord component.summary()One-line summary like"2 install, 1 update, 0 skip, 0 ok, 1 user".final StringtoString()Returns a string representation of this record class.inttotal()Total number of entries across every action kind.intupdate()Returns the value of theupdaterecord component.intupToDate()Returns the value of theupToDaterecord component.intReturns the value of theuserManagedrecord component.
-
Constructor Details
-
Counts
public Counts(int install, int update, int skip, int upToDate, int userManaged) Creates an instance of aCountsrecord class.- Parameters:
install- the value for theinstallrecord componentupdate- the value for theupdaterecord componentskip- the value for theskiprecord componentupToDate- the value for theupToDaterecord componentuserManaged- the value for theuserManagedrecord component
-
-
Method Details
-
total
public int total()Total number of entries across every action kind.- Returns:
- sum of
install + update + skip + upToDate + userManaged
-
hasWrites
public boolean hasWrites()Whether any write action is planned.- Returns:
trueifinstall + update > 0
-
summary
One-line summary like"2 install, 1 update, 0 skip, 0 ok, 1 user".- Returns:
- summary line suitable for draft-output display
-
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 with thecomparemethod from their corresponding wrapper classes. -
install
-
update
-
skip
-
upToDate
-
userManaged
public int userManaged()Returns the value of theuserManagedrecord component.- Returns:
- the value of the
userManagedrecord component
-