Record Class ByteOutput.OfData
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.io.ByteOutput.OfData
- All Implemented Interfaces:
ByteOutput
- Enclosing interface:
ByteOutput
-
Nested Class Summary
Nested classes/interfaces inherited from interface ByteOutput
ByteOutput.OfBuffer, ByteOutput.OfData, ByteOutput.OfStream -
Constructor Summary
Constructors -
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.out()Returns the value of theoutrecord component.byte[]final StringtoString()Returns a string representation of this record class.voidwriteAll(byte[] value) voidwriteAll(byte[] value, int offset, int len) voidwriteByte(byte value) voidwriteDouble(double value) voidwriteFloat(float value) voidwriteInt(int value) voidwriteLong(long value) voidwriteShort(short value) voidwriteUByte(int value) voidwriteUShort(int value) Methods inherited from interface ByteOutput
writeByteArray, writeExactTime, writeUTF, writeUUID, writeVarInt, writeVarLong
-
Constructor Details
-
OfData
Creates an instance of aOfDatarecord class.- Parameters:
out- the value for theoutrecord component
-
-
Method Details
-
writeByte
- Specified by:
writeBytein interfaceByteOutput- Throws:
IOException
-
writeUByte
- Specified by:
writeUBytein interfaceByteOutput- Throws:
IOException
-
writeAll
- Specified by:
writeAllin interfaceByteOutput- Throws:
IOException
-
writeAll
- Specified by:
writeAllin interfaceByteOutput- Throws:
IOException
-
writeShort
- Specified by:
writeShortin interfaceByteOutput- Throws:
IOException
-
writeUShort
- Specified by:
writeUShortin interfaceByteOutput- Throws:
IOException
-
writeInt
- Specified by:
writeIntin interfaceByteOutput- Throws:
IOException
-
writeLong
- Specified by:
writeLongin interfaceByteOutput- Throws:
IOException
-
writeFloat
- Specified by:
writeFloatin interfaceByteOutput- Throws:
IOException
-
writeDouble
- Specified by:
writeDoublein interfaceByteOutput- Throws:
IOException
-
toByteArray
- Specified by:
toByteArrayin interfaceByteOutput- Throws:
IOException
-
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). -
out
Returns the value of theoutrecord component.- Returns:
- the value of the
outrecord component
-