Package org.postgresql.core
Class AsciiStringInterner.Key
- java.lang.Object
-
- org.postgresql.core.AsciiStringInterner.BaseKey
-
- org.postgresql.core.AsciiStringInterner.Key
-
- Enclosing class:
- AsciiStringInterner
private static final class AsciiStringInterner.Key extends AsciiStringInterner.BaseKey
Instance used for inserting values into the cache. Thebyte[]must be a copy that will never be mutated.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) byte[]key
-
Constructor Summary
Constructors Constructor Description Key(byte[] key, int hash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidappendString(java.lang.StringBuilder sb)booleanequals(byte[] other, int offset, int length)(package private) booleanequalsBytes(AsciiStringInterner.BaseKey other)-
Methods inherited from class org.postgresql.core.AsciiStringInterner.BaseKey
equals, hashCode
-
-
-
-
Method Detail
-
equalsBytes
boolean equalsBytes(AsciiStringInterner.BaseKey other)
- Specified by:
equalsBytesin classAsciiStringInterner.BaseKey
-
equals
public boolean equals(byte[] other, int offset, int length)- Specified by:
equalsin classAsciiStringInterner.BaseKey
-
appendString
void appendString(java.lang.StringBuilder sb)
- Specified by:
appendStringin classAsciiStringInterner.BaseKey
-
-