Record Class BruteForceDetector.Result
java.lang.Object
java.lang.Record
net.lenni0451.imnbt.utils.nbt.detector.BruteForceDetector.Result
- Enclosing class:
- BruteForceDetector
public static record BruteForceDetector.Result(CompressionType compressionType, EndianType endianType, FormatType formatType, CustomFormatType customFormatType, boolean namelessRoot, NbtReader.ReadResult readResult)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(CompressionType compressionType, EndianType endianType, FormatType formatType, CustomFormatType customFormatType, boolean namelessRoot, NbtReader.ReadResult readResult) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompressionTyperecord component.Returns the value of thecustomFormatTyperecord component.Returns the value of theendianTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theformatTyperecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thenamelessRootrecord component.Returns the value of thereadResultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(CompressionType compressionType, EndianType endianType, FormatType formatType, CustomFormatType customFormatType, boolean namelessRoot, NbtReader.ReadResult readResult) Creates an instance of aResultrecord class.- Parameters:
compressionType- the value for thecompressionTyperecord componentendianType- the value for theendianTyperecord componentformatType- the value for theformatTyperecord componentcustomFormatType- the value for thecustomFormatTyperecord componentnamelessRoot- the value for thenamelessRootrecord componentreadResult- the value for thereadResultrecord 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 '=='. -
compressionType
Returns the value of thecompressionTyperecord component.- Returns:
- the value of the
compressionTyperecord component
-
endianType
Returns the value of theendianTyperecord component.- Returns:
- the value of the
endianTyperecord component
-
formatType
Returns the value of theformatTyperecord component.- Returns:
- the value of the
formatTyperecord component
-
customFormatType
Returns the value of thecustomFormatTyperecord component.- Returns:
- the value of the
customFormatTyperecord component
-
namelessRoot
public boolean namelessRoot()Returns the value of thenamelessRootrecord component.- Returns:
- the value of the
namelessRootrecord component
-
readResult
Returns the value of thereadResultrecord component.- Returns:
- the value of the
readResultrecord component
-