Package org.firebirdsql.gds.ng
Interface DatatypeCoder
-
- All Known Implementing Classes:
BigEndianDatatypeCoder
,DefaultDatatypeCoder
,EncodingSpecificDatatypeCoder
,LittleEndianDatatypeCoder
public interface DatatypeCoder
Interface defining the encoding and decoding for Firebird (numerical) data types.- Since:
- 3.0
- Author:
- Mark Rotteveel
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DatatypeCoder.RawDateTimeStruct
Deprecated.use ajava.time
type; will be removed in Jaybird 6
-
Field Summary
Fields Modifier and Type Field Description static int
FRACTIONS_PER_HOUR
static int
FRACTIONS_PER_MILLISECOND
static int
FRACTIONS_PER_MINUTE
static int
FRACTIONS_PER_SECOND
static int
NANOSECONDS_PER_FRACTION
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.io.Reader
createReader(java.io.InputStream inputStream)
Creates a reader wrapping an input stream.java.io.Writer
createWriter(java.io.OutputStream outputStream)
Creates a writer wrapping an input stream.boolean
decodeBoolean(byte[] data)
Decode boolean from supplied data.java.sql.Date
decodeDate(java.sql.Date d, java.util.Calendar cal)
Deprecated.will be removed in Jaybird 6java.sql.Date
decodeDateCalendar(byte[] byte_int, java.util.Calendar c)
Deprecated.usedecodeLocalDate(byte[])
; will be removed in Jaybird 6DatatypeCoder.RawDateTimeStruct
decodeDateRaw(byte[] byte_int)
Deprecated.usedecodeLocalDate(byte[])
; will be removed in Jaybird 6Decimal128
decodeDecimal128(byte[] data)
Decodes a decimal128 from byte array.Decimal64
decodeDecimal64(byte[] data)
Decodes a decimal64 from byte array.double
decodeDouble(byte[] byte_int)
Decode abyte
array into adouble
value.float
decodeFloat(byte[] byte_int)
Decode abyte
array into afloat
value.int
decodeInt(byte[] byte_int)
Decode abyte
array into anint
value.int
decodeInt(byte[] bytes, int fromIndex)
Decode abyte
array to anint
value.java.math.BigInteger
decodeInt128(byte[] data)
Decodes a BigInteger from byte array.java.time.LocalDate
decodeLocalDate(byte[] data)
Decode LocalDate from supplied data.java.time.LocalDateTime
decodeLocalDateTime(byte[] data)
Decode LocalDateTime from supplied data.java.time.LocalTime
decodeLocalTime(byte[] data)
Decode LocalTime from supplied data.long
decodeLong(byte[] byte_int)
Decode abyte
array into along
value.short
decodeShort(byte[] byte_int)
Decode abyte
array into ashort
value.short
decodeShort(byte[] bytes, int fromIndex)
Decode from abyte
array to ashort
value.java.lang.String
decodeString(byte[] value)
Decode an encodedbyte
array into aString
using the encoding of this datatype coder.java.sql.Time
decodeTime(java.sql.Time d, java.util.Calendar cal, boolean invertTimeZone)
Deprecated.will be removed in Jaybird 6java.sql.Time
decodeTimeCalendar(byte[] int_byte, java.util.Calendar c)
Deprecated.usedecodeLocalTime(byte[])
; will be removed in Jaybird 6DatatypeCoder.RawDateTimeStruct
decodeTimeRaw(byte[] int_byte)
Deprecated.usedecodeLocalTime(byte[])
; will be removed in Jaybird 6java.sql.Timestamp
decodeTimestamp(java.sql.Timestamp value, java.util.Calendar cal, boolean invertTimeZone)
Deprecated.will be removed in Jaybird 6java.sql.Timestamp
decodeTimestampCalendar(byte[] byte_long, java.util.Calendar c)
Deprecated.usedecodeLocalDateTime(byte[])
; will be removed in Jaybird 6DatatypeCoder.RawDateTimeStruct
decodeTimestampRaw(byte[] byte_long)
Deprecated.usedecodeLocalDateTime(byte[])
; will be removed in Jaybird 6byte[]
encodeBoolean(boolean value)
Encodes boolean to 1 byte data.java.sql.Date
encodeDate(java.sql.Date d, java.util.Calendar cal)
Deprecated.will be removed in Jaybird 6byte[]
encodeDateCalendar(java.sql.Date d, java.util.Calendar c)
Deprecated.useencodeLocalDate(LocalDate)
; will be removed in Jaybird 6byte[]
encodeDateRaw(DatatypeCoder.RawDateTimeStruct raw)
Deprecated.useencodeLocalDate(LocalDate)
; will be removed in Jaybird 6byte[]
encodeDecimal128(Decimal128 decimal128)
Encodes a decimal128 to a byte array.byte[]
encodeDecimal64(Decimal64 decimal64)
Encodes a decimal64 to a byte array.byte[]
encodeDouble(double value)
Encode adouble
value as abyte
array.byte[]
encodeFloat(float value)
Encode afloat
value as abyte
array.byte[]
encodeInt(int value)
Encode anint
value as abyte
array.void
encodeInt(int value, byte[] target, int fromIndex)
Encode anint
value into thetarget
byte array starting at indexfromIndex
.byte[]
encodeInt128(java.math.BigInteger bigInteger)
Encodes a BigInteger to a 16-byte byte array.byte[]
encodeLocalDate(java.time.LocalDate value)
Encodes a java.time.LocalDate to date bytes.byte[]
encodeLocalDateTime(java.time.LocalDateTime value)
Encodes a java.time.LocalDateTime to timestamp bytes.byte[]
encodeLocalTime(java.time.LocalTime value)
Encodes a java.time.LocalTime to time bytes.byte[]
encodeLong(long value)
Encode along
value as abyte
array.byte[]
encodeShort(int value)
Encode ashort
value as abyte
array.void
encodeShort(int value, byte[] target, int fromIndex)
Encode ashort
value into thetarget
byte array starting at indexfromIndex
.byte[]
encodeShort(short value)
Encode ashort
value as abyte
array.byte[]
encodeString(java.lang.String value)
Encode aString
value into abyte
array using the encoding of this datatype coder.java.sql.Time
encodeTime(java.sql.Time d, java.util.Calendar cal, boolean invertTimeZone)
Deprecated.useencodeLocalTime(LocalTime)
; will be removed in Jaybird 6byte[]
encodeTimeCalendar(java.sql.Time d, java.util.Calendar c)
Deprecated.will be removed in Jaybird 6byte[]
encodeTimeRaw(DatatypeCoder.RawDateTimeStruct raw)
Deprecated.useencodeLocalTime(LocalTime)
; will be removed in Jaybird 6java.sql.Timestamp
encodeTimestamp(java.sql.Timestamp value, java.util.Calendar cal, boolean invertTimeZone)
Deprecated.will be removed in Jaybird 6byte[]
encodeTimestampCalendar(java.sql.Timestamp value, java.util.Calendar c)
Deprecated.useencodeLocalDateTime(LocalDateTime)
; will be removed in Jaybird 6byte[]
encodeTimestampRaw(DatatypeCoder.RawDateTimeStruct raw)
Deprecated.useencodeLocalDateTime(LocalDateTime)
; will be removed in Jaybird 6boolean
equals(java.lang.Object other)
DatatypeCoder
forEncodingDefinition(EncodingDefinition encodingDefinition)
Return a derived datatype coder that applies the supplied encoding definition for string conversions.Encoding
getEncoding()
EncodingDefinition
getEncodingDefinition()
IEncodingFactory
getEncodingFactory()
int
hashCode()
int
sizeOfShort()
The size of an encoded short in this data type coder.DatatypeCoder
unwrap()
Unwrap this datatype coder to its parent (or itself).
-
-
-
Field Detail
-
NANOSECONDS_PER_FRACTION
static final int NANOSECONDS_PER_FRACTION
- See Also:
- Constant Field Values
-
FRACTIONS_PER_MILLISECOND
static final int FRACTIONS_PER_MILLISECOND
- See Also:
- Constant Field Values
-
FRACTIONS_PER_SECOND
static final int FRACTIONS_PER_SECOND
- See Also:
- Constant Field Values
-
FRACTIONS_PER_MINUTE
static final int FRACTIONS_PER_MINUTE
- See Also:
- Constant Field Values
-
FRACTIONS_PER_HOUR
static final int FRACTIONS_PER_HOUR
- See Also:
- Constant Field Values
-
-
Method Detail
-
sizeOfShort
int sizeOfShort()
The size of an encoded short in this data type coder.- Returns:
- The size of an encoded short (either
2
or4
bytes) - Since:
- 4.0
-
encodeShort
byte[] encodeShort(short value)
Encode ashort
value as abyte
array.- Parameters:
value
- The value to be encoded- Returns:
- The value of
value
encoded as abyte
array - See Also:
encodeShort(int)
-
encodeShort
byte[] encodeShort(int value)
Encode ashort
value as abyte
array.- Parameters:
value
- The value to be encoded- Returns:
- The value of
value
encoded as abyte
array
-
encodeShort
void encodeShort(int value, byte[] target, int fromIndex)
Encode ashort
value into thetarget
byte array starting at indexfromIndex
.- Parameters:
value
- The value to be encodedtarget
- Target byte array of sufficient size (warning: this may be datatype coder specific)fromIndex
- Index to start writing- Since:
- 4.0
-
decodeShort
short decodeShort(byte[] byte_int)
Decode abyte
array into ashort
value.- Parameters:
byte_int
- Thebyte
array to be decoded- Returns:
- The
short
value of the decodedbyte
array
-
decodeShort
short decodeShort(byte[] bytes, int fromIndex)
Decode from abyte
array to ashort
value.- Parameters:
bytes
- Thebyte
array to be decodedfromIndex
- The index to start reading- Returns:
- The
short
value of the decodedbyte
array - Since:
- 4.0
-
encodeInt
byte[] encodeInt(int value)
Encode anint
value as abyte
array.- Parameters:
value
- The value to be encoded- Returns:
- The value of
value
encoded as abyte
array
-
encodeInt
void encodeInt(int value, byte[] target, int fromIndex)
Encode anint
value into thetarget
byte array starting at indexfromIndex
.- Parameters:
value
- The value to be encodedtarget
- Target byte array of sufficient sizefromIndex
- Index to start writing- Since:
- 4.0
-
decodeInt
int decodeInt(byte[] byte_int)
Decode abyte
array into anint
value.- Parameters:
byte_int
- Thebyte
array to be decoded- Returns:
- The
int
value of the decodedbyte
array
-
decodeInt
int decodeInt(byte[] bytes, int fromIndex)
Decode abyte
array to anint
value.- Parameters:
bytes
- Thebyte
array to be decodedfromIndex
- The index to start reading- Returns:
- The
int
value of the decodedbyte
array - Since:
- 4.0
-
encodeLong
byte[] encodeLong(long value)
Encode along
value as abyte
array.- Parameters:
value
- The value to be encoded- Returns:
- The value of
value
encoded as abyte
array
-
decodeLong
long decodeLong(byte[] byte_int)
Decode abyte
array into along
value.- Parameters:
byte_int
- Thebyte
array to be decoded- Returns:
- The
long
value of the decodedbyte
array
-
encodeFloat
byte[] encodeFloat(float value)
Encode afloat
value as abyte
array.- Parameters:
value
- The value to be encoded- Returns:
- The value of
value
encoded as abyte
array
-
decodeFloat
float decodeFloat(byte[] byte_int)
Decode abyte
array into afloat
value.- Parameters:
byte_int
- Thebyte
array to be decoded- Returns:
- The
float
value of the decodedbyte
array
-
encodeDouble
byte[] encodeDouble(double value)
Encode adouble
value as abyte
array.- Parameters:
value
- The value to be encoded- Returns:
- The value of
value
encoded as abyte
array
-
decodeDouble
double decodeDouble(byte[] byte_int)
Decode abyte
array into adouble
value.- Parameters:
byte_int
- Thebyte
array to be decoded- Returns:
- The
double
value of the decodedbyte
array
-
encodeString
byte[] encodeString(java.lang.String value)
Encode aString
value into abyte
array using the encoding of this datatype coder.- Parameters:
value
- TheString
to be encoded- Returns:
- The value of
value
as abyte
array - Since:
- 4.0
-
createWriter
java.io.Writer createWriter(java.io.OutputStream outputStream)
Creates a writer wrapping an input stream.- Parameters:
outputStream
- Input stream- Returns:
- Writer applying the encoding of this datatype when writing
- Since:
- 4.0
-
decodeString
java.lang.String decodeString(byte[] value)
Decode an encodedbyte
array into aString
using the encoding of this datatype coder.- Parameters:
value
- The value to be decoded- Returns:
- The decoded
String
- Since:
- 4.0
-
createReader
java.io.Reader createReader(java.io.InputStream inputStream)
Creates a reader wrapping an input stream.- Parameters:
inputStream
- Input stream- Returns:
- Reader applying the encoding of this datatype coder when reading
- Since:
- 4.0
-
encodeTimestamp
@Deprecated java.sql.Timestamp encodeTimestamp(java.sql.Timestamp value, java.util.Calendar cal, boolean invertTimeZone)
Deprecated.will be removed in Jaybird 6Encode aTimestamp
using a givenCalendar
.- Parameters:
value
- TheTimestamp
to be encodedcal
- TheCalendar
to be used for encoding, may benull
invertTimeZone
- Iftrue
, the timezone offset value will be subtracted from the encoded value, otherwise it will be added- Returns:
- The encoded
Timestamp
-
encodeTimestampRaw
@Deprecated byte[] encodeTimestampRaw(DatatypeCoder.RawDateTimeStruct raw)
Deprecated.useencodeLocalDateTime(LocalDateTime)
; will be removed in Jaybird 6Encode the date and time portions of a raw date time struct into abyte
array.- Parameters:
raw
- TheRawDateTimeStruct
to be encoded- Returns:
- The array of
byte
s representing the date and time of the givenRawDateTimeStruct
-
encodeTimestampCalendar
@Deprecated byte[] encodeTimestampCalendar(java.sql.Timestamp value, java.util.Calendar c)
Deprecated.useencodeLocalDateTime(LocalDateTime)
; will be removed in Jaybird 6Encode aTimestamp
as abyte
array.- Parameters:
value
- TheTimestamp
to be encodedc
- Calendar to use for time zone calculation- Returns:
- The array of
byte
s that represents the givenTimestamp
value
-
decodeTimestamp
@Deprecated java.sql.Timestamp decodeTimestamp(java.sql.Timestamp value, java.util.Calendar cal, boolean invertTimeZone)
Deprecated.will be removed in Jaybird 6Decode aTimestamp
value using a givenCalendar
.- Parameters:
value
- TheTimestamp
to be decodedcal
- TheCalendar
to be used in decoding, may benull
invertTimeZone
- Iftrue
, the timezone offset value will be subtracted from the decoded value, otherwise it will be added- Returns:
- The encoded
Timestamp
-
decodeTimestampRaw
@Deprecated DatatypeCoder.RawDateTimeStruct decodeTimestampRaw(byte[] byte_long)
Deprecated.usedecodeLocalDateTime(byte[])
; will be removed in Jaybird 6Decode an 8-bytebyte
array into a raw date time struct.- Parameters:
byte_long
- Thebyte
array to be decoded- Returns:
- A
DatatypeCoder.RawDateTimeStruct
.
-
decodeTimestampCalendar
@Deprecated java.sql.Timestamp decodeTimestampCalendar(byte[] byte_long, java.util.Calendar c)
Deprecated.usedecodeLocalDateTime(byte[])
; will be removed in Jaybird 6Decode an 8-bytebyte
array into aTimestamp
.- Parameters:
byte_long
- Thebyte
array to be decodedc
- Calendar to use for time zone calculation- Returns:
- A
Timestamp
value from the decoded bytes
-
encodeTime
@Deprecated java.sql.Time encodeTime(java.sql.Time d, java.util.Calendar cal, boolean invertTimeZone)
Deprecated.useencodeLocalTime(LocalTime)
; will be removed in Jaybird 6Encode a givenTime
value using a givenCalendar
.- Parameters:
d
- TheTime
to be encodedcal
- TheCalendar
to be used in the encoding, may benull
- Returns:
- The encoded
Time
-
encodeTimeRaw
@Deprecated byte[] encodeTimeRaw(DatatypeCoder.RawDateTimeStruct raw)
Deprecated.useencodeLocalTime(LocalTime)
; will be removed in Jaybird 6Encode the time portion of a raw date time struct into abyte
array.- Parameters:
raw
- TheRawDateTimeStruct
to be encoded- Returns:
- The array of
byte
s representing the time of the givenRawDateTimeStruct
-
encodeTimeCalendar
@Deprecated byte[] encodeTimeCalendar(java.sql.Time d, java.util.Calendar c)
Deprecated.will be removed in Jaybird 6Encode aTime
value into abyte
array.- Parameters:
d
- TheTime
to be encodedc
- Calendar to use for time zone calculation- Returns:
- The array of
byte
s representing the givenTime
-
decodeTime
@Deprecated java.sql.Time decodeTime(java.sql.Time d, java.util.Calendar cal, boolean invertTimeZone)
Deprecated.will be removed in Jaybird 6Decode aTime
value using a givenCalendar
.- Parameters:
d
- TheTime
to be decodedcal
- TheCalendar
to be used in the decoding, may benull
- Returns:
- The decoded
Time
-
decodeTimeRaw
@Deprecated DatatypeCoder.RawDateTimeStruct decodeTimeRaw(byte[] int_byte)
Deprecated.usedecodeLocalTime(byte[])
; will be removed in Jaybird 6Decode abyte
array into a raw date time struct.- Parameters:
int_byte
- Thebyte
array to be decoded- Returns:
- The
DatatypeCoder.RawDateTimeStruct
-
decodeTimeCalendar
@Deprecated java.sql.Time decodeTimeCalendar(byte[] int_byte, java.util.Calendar c)
Deprecated.usedecodeLocalTime(byte[])
; will be removed in Jaybird 6Decode abyte
array into aTime
value.- Parameters:
int_byte
- Thebyte
array to be decodedc
- Calendar to use for time zone calculation- Returns:
- The decoded
Time
-
encodeDate
@Deprecated java.sql.Date encodeDate(java.sql.Date d, java.util.Calendar cal)
Deprecated.will be removed in Jaybird 6Encode a givenDate
value using a givenCalendar
.- Parameters:
d
- TheDate
to be encodedcal
- TheCalendar
to be used in the encoding, may benull
- Returns:
- The encoded
Date
-
encodeDateRaw
@Deprecated byte[] encodeDateRaw(DatatypeCoder.RawDateTimeStruct raw)
Deprecated.useencodeLocalDate(LocalDate)
; will be removed in Jaybird 6Encode the date portion of a raw date time struct into abyte
array.- Parameters:
raw
- TheRawDateTimeStruct
to be encoded- Returns:
- The array of
byte
s representing the date of the givenRawDateTimeStruct
-
encodeDateCalendar
@Deprecated byte[] encodeDateCalendar(java.sql.Date d, java.util.Calendar c)
Deprecated.useencodeLocalDate(LocalDate)
; will be removed in Jaybird 6Encode aDate
value into abyte
array.- Parameters:
d
- TheDate
to be encodedc
- Calendar to use for time zone calculation- Returns:
- The array of
byte
s representing the givenDate
-
decodeDate
@Deprecated java.sql.Date decodeDate(java.sql.Date d, java.util.Calendar cal)
Deprecated.will be removed in Jaybird 6Decode aDate
value using a givenCalendar
.- Parameters:
d
- TheDate
to be decodedcal
- TheCalendar
to be used in the decoding, may benull
- Returns:
- The decoded
Date
-
decodeDateRaw
@Deprecated DatatypeCoder.RawDateTimeStruct decodeDateRaw(byte[] byte_int)
Deprecated.usedecodeLocalDate(byte[])
; will be removed in Jaybird 6Decode abyte
array into a raw date time struct.- Parameters:
byte_int
- Thebyte
array to be decoded- Returns:
- The
DatatypeCoder.RawDateTimeStruct
-
decodeDateCalendar
@Deprecated java.sql.Date decodeDateCalendar(byte[] byte_int, java.util.Calendar c)
Deprecated.usedecodeLocalDate(byte[])
; will be removed in Jaybird 6Decode abyte
array into aDate
value.- Parameters:
byte_int
- Thebyte
array to be decodedc
- Calendar to use for time zone calculation- Returns:
- The decoded
Date
-
decodeBoolean
boolean decodeBoolean(byte[] data)
Decode boolean from supplied data.- Parameters:
data
- (expected) 1 bytes- Returns:
false
when 0,true
for all other values
-
encodeBoolean
byte[] encodeBoolean(boolean value)
Encodes boolean to 1 byte data.- Parameters:
value
- Boolean value to encode- Returns:
true
as 1,false
as 0.
-
decodeLocalTime
java.time.LocalTime decodeLocalTime(byte[] data)
Decode LocalTime from supplied data.- Parameters:
data
- (expected) 4 bytes- Returns:
- LocalTime value
- Since:
- 5
-
encodeLocalTime
byte[] encodeLocalTime(java.time.LocalTime value)
Encodes a java.time.LocalTime to time bytes.- Parameters:
value
- LocalTime value to encode- Returns:
- Byte array for time
- Since:
- 5
-
decodeLocalDate
java.time.LocalDate decodeLocalDate(byte[] data)
Decode LocalDate from supplied data.- Parameters:
data
- (expected) 4 bytes- Returns:
- LocalDate value
- Since:
- 5
-
encodeLocalDate
byte[] encodeLocalDate(java.time.LocalDate value)
Encodes a java.time.LocalDate to date bytes.- Parameters:
value
- LocalDate to encode- Returns:
- Byte array for date
- Since:
- 5
-
decodeLocalDateTime
java.time.LocalDateTime decodeLocalDateTime(byte[] data)
Decode LocalDateTime from supplied data.- Parameters:
data
- (expected) 8 bytes- Returns:
- LocalDateTime value
- Since:
- 5
-
encodeLocalDateTime
byte[] encodeLocalDateTime(java.time.LocalDateTime value)
Encodes a java.time.LocalDateTime to timestamp bytes.- Parameters:
value
- LocalDateTime to encode- Returns:
- Byte array for date
- Since:
- 5
-
decodeDecimal64
Decimal64 decodeDecimal64(byte[] data)
Decodes a decimal64 from byte array.- Parameters:
data
- Data to decode (expected 8 bytes)- Returns:
- Decimal64 value
-
encodeDecimal64
byte[] encodeDecimal64(Decimal64 decimal64)
Encodes a decimal64 to a byte array.- Parameters:
decimal64
- The decimal64 value to be encoded- Returns:
- Byte array for decimal64 value
-
decodeDecimal128
Decimal128 decodeDecimal128(byte[] data)
Decodes a decimal128 from byte array.- Parameters:
data
- Data to decode (expected 16 bytes)- Returns:
- Decimal128 value
-
encodeDecimal128
byte[] encodeDecimal128(Decimal128 decimal128)
Encodes a decimal128 to a byte array.- Parameters:
decimal128
- The decimal128 value to be encoded- Returns:
- Byte array for decimal128 value
-
decodeInt128
java.math.BigInteger decodeInt128(byte[] data)
Decodes a BigInteger from byte array.- Parameters:
data
- Data to decode (expected 16 bytes)- Returns:
- BigInteger value
-
encodeInt128
byte[] encodeInt128(java.math.BigInteger bigInteger)
Encodes a BigInteger to a 16-byte byte array.The implementation expects to be passed a value that fits in 16 bytes. If a larger value is passed, and
IllegalArgumentException
is thrown.- Parameters:
bigInteger
- The BigInteger value to be encoded- Returns:
- Byte array for bigInteger value
-
getEncodingFactory
IEncodingFactory getEncodingFactory()
- Returns:
- The encoding factory.
-
getEncodingDefinition
EncodingDefinition getEncodingDefinition()
- Returns:
- The encoding definition used by this datatype coder for string conversions.
-
getEncoding
Encoding getEncoding()
- Returns:
- The encoding used by this datatype coder for string conversions.
-
forEncodingDefinition
DatatypeCoder forEncodingDefinition(EncodingDefinition encodingDefinition)
Return a derived datatype coder that applies the supplied encoding definition for string conversions.- Parameters:
encodingDefinition
- Encoding definition- Returns:
- Derived datatype coder (this instance, if encoding definition is the same)
- Since:
- 4.0
-
unwrap
DatatypeCoder unwrap()
Unwrap this datatype coder to its parent (or itself).- Returns:
- Return the parent of this datatype code, or itself if it has no parent.
- Since:
- 4.0
-
equals
boolean equals(java.lang.Object other)
Equality: same basic type (ie: wire protocol/JNA type + endianness) and same encoding definition.
This does not need to take into account the encoding factory, as usage should be limited to datatype coders derived from the same connection.
- Overrides:
equals
in classjava.lang.Object
- Parameters:
other
- Object to compare to- Returns:
true
if other is an equivalent datatype coder.
-
hashCode
int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-