Package ac.boar.anticheat.util.geyser
Record Class PaddedBitArray
java.lang.Object
java.lang.Record
ac.boar.anticheat.util.geyser.PaddedBitArray
- Record Components:
version- Palette version informationsize- Number of entries in this palette (not the length of the words array that internally backs this palette)words- Array used to store data
- All Implemented Interfaces:
BitArray
public record PaddedBitArray(BitArrayVersion version, int size, int[] words)
extends Record
implements BitArray
-
Constructor Summary
ConstructorsConstructorDescriptionPaddedBitArray(BitArrayVersion version, int size, int[] words) Creates an instance of aPaddedBitArrayrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncopy()final booleanIndicates whether some other object is "equal to" this one.intget(int index) final inthashCode()Returns a hash code value for this object.voidset(int index, int value) intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.int[]words()Returns the value of thewordsrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ac.boar.anticheat.util.geyser.BitArray
writeSizeToNetwork
-
Constructor Details
-
Method Details
-
set
public void set(int index, int value) -
get
public int get(int index) -
copy
-
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 '=='. -
version
Returns the value of theversionrecord component. -
size
public int size()Returns the value of thesizerecord component. -
words
public int[] words()Returns the value of thewordsrecord component.
-