- All Superinterfaces:
TwosComplement
- All Known Implementing Classes:
Adapter.AsByte.Signed
,Adapter.AsInt.Signed
,Adapter.AsLong.Signed
,Adapter.AsShort.Signed
- Enclosing interface:
TwosComplement
Mixin with default signed implementations of the interface methods.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.postgresql.pljava.adt.spi.TwosComplement
TwosComplement.Signed, TwosComplement.Unsigned
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
compare
(byte x, byte y) default int
compare
(int x, int y) default int
compare
(long x, long y) default int
compare
(short x, short y) default String
deparse
(byte i, int radix) default String
deparse
(int i, int radix) default String
deparse
(long i, int radix) default String
deparse
(short i, int radix) default byte
divide
(byte dividend, byte divisor) default int
divide
(int dividend, int divisor) default long
divide
(long dividend, long divisor) default short
divide
(short dividend, short divisor) default byte
parseByte
(CharSequence s, int beginIndex, int endIndex, int radix) default int
parseInt
(CharSequence s, int beginIndex, int endIndex, int radix) default long
parseLong
(CharSequence s, int beginIndex, int endIndex, int radix) default short
parseShort
(CharSequence s, int beginIndex, int endIndex, int radix) default byte
remainder
(byte dividend, byte divisor) default int
remainder
(int dividend, int divisor) default long
remainder
(long dividend, long divisor) default short
remainder
(short dividend, short divisor) default int
toInt
(byte i) default int
toInt
(short i) default long
toLong
(byte i) default long
toLong
(int i) default long
toLong
(short i) default short
toShort
(byte i) default boolean
unsigned()
Methods inherited from interface org.postgresql.pljava.adt.spi.TwosComplement
deparse, deparse, deparse, deparse, parseByte, parseByte, parseInt, parseInt, parseLong, parseLong, parseShort, parseShort
-
Method Details
-
unsigned
default boolean unsigned()- Specified by:
unsigned
in interfaceTwosComplement
-
compare
default int compare(long x, long y) - Specified by:
compare
in interfaceTwosComplement
-
divide
default long divide(long dividend, long divisor) - Specified by:
divide
in interfaceTwosComplement
-
remainder
default long remainder(long dividend, long divisor) - Specified by:
remainder
in interfaceTwosComplement
-
parseLong
- Specified by:
parseLong
in interfaceTwosComplement
-
deparse
- Specified by:
deparse
in interfaceTwosComplement
-
compare
default int compare(int x, int y) - Specified by:
compare
in interfaceTwosComplement
-
divide
default int divide(int dividend, int divisor) - Specified by:
divide
in interfaceTwosComplement
-
remainder
default int remainder(int dividend, int divisor) - Specified by:
remainder
in interfaceTwosComplement
-
toLong
default long toLong(int i) - Specified by:
toLong
in interfaceTwosComplement
-
parseInt
- Specified by:
parseInt
in interfaceTwosComplement
-
deparse
- Specified by:
deparse
in interfaceTwosComplement
-
compare
default int compare(short x, short y) - Specified by:
compare
in interfaceTwosComplement
-
divide
default short divide(short dividend, short divisor) - Specified by:
divide
in interfaceTwosComplement
-
remainder
default short remainder(short dividend, short divisor) - Specified by:
remainder
in interfaceTwosComplement
-
toLong
default long toLong(short i) - Specified by:
toLong
in interfaceTwosComplement
-
toInt
default int toInt(short i) - Specified by:
toInt
in interfaceTwosComplement
-
parseShort
- Specified by:
parseShort
in interfaceTwosComplement
-
deparse
- Specified by:
deparse
in interfaceTwosComplement
-
compare
default int compare(byte x, byte y) - Specified by:
compare
in interfaceTwosComplement
-
divide
default byte divide(byte dividend, byte divisor) - Specified by:
divide
in interfaceTwosComplement
-
remainder
default byte remainder(byte dividend, byte divisor) - Specified by:
remainder
in interfaceTwosComplement
-
toLong
default long toLong(byte i) - Specified by:
toLong
in interfaceTwosComplement
-
toInt
default int toInt(byte i) - Specified by:
toInt
in interfaceTwosComplement
-
toShort
default short toShort(byte i) - Specified by:
toShort
in interfaceTwosComplement
-
parseByte
- Specified by:
parseByte
in interfaceTwosComplement
-
deparse
- Specified by:
deparse
in interfaceTwosComplement
-