Record Class ContentCounts
java.lang.Object
java.lang.Record
com.ultikits.ultitools.bootstrap.ContentCounts
Counts distinct content keys for the early log and the translated console report.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thedatapacksrecord component.private final intThe field for theenchantmentsrecord component.private final intThe field for thetagsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionContentCounts(int enchantments, int tags, int datapacks) Creates an instance of aContentCountsrecord class. -
Method Summary
Modifier and TypeMethodDescription(package private) Arg[]args()private static intcount(List<ContentEntry> entries, String kind) intReturns the value of thedatapacksrecord component.intReturns the value of theenchantmentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.(package private) static Stringkind(ContentEntry entry) (package private) static ContentCountsof(List<ContentEntry> entries) inttags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
enchantments
private final int enchantmentsThe field for theenchantmentsrecord component. -
tags
private final int tagsThe field for thetagsrecord component. -
datapacks
private final int datapacksThe field for thedatapacksrecord component.
-
-
Constructor Details
-
ContentCounts
ContentCounts(int enchantments, int tags, int datapacks) Creates an instance of aContentCountsrecord class.- Parameters:
enchantments- the value for theenchantmentsrecord componenttags- the value for thetagsrecord componentdatapacks- the value for thedatapacksrecord component
-
-
Method Details
-
of
-
kind
-
count
-
args
Arg[] args() -
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. -
enchantments
public int enchantments()Returns the value of theenchantmentsrecord component.- Returns:
- the value of the
enchantmentsrecord component
-
tags
public int tags()Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
datapacks
public int datapacks()Returns the value of thedatapacksrecord component.- Returns:
- the value of the
datapacksrecord component
-