Record Class Bit
java.lang.Object
java.lang.Record
io.codemine.java.postgresql.codecs.Bit
- Record Components:
length- the number of bitsdata- the bit data as bytes (MSB first), withceil(length/8)bytes; any padding bits in the last byte must be zero
PostgreSQL
bit / varbit type. A fixed- or variable-length bit string.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.intlength()Returns the value of thelengthrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
length
public int length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-
data
public byte[] data()Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-