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) void
appendString(java.lang.StringBuilder sb)
boolean
equals(byte[] other, int offset, int length)
(package private) boolean
equalsBytes(AsciiStringInterner.BaseKey other)
-
Methods inherited from class org.postgresql.core.AsciiStringInterner.BaseKey
equals, hashCode
-
-
-
-
Method Detail
-
equalsBytes
boolean equalsBytes(AsciiStringInterner.BaseKey other)
- Specified by:
equalsBytes
in classAsciiStringInterner.BaseKey
-
equals
public boolean equals(byte[] other, int offset, int length)
- Specified by:
equals
in classAsciiStringInterner.BaseKey
-
appendString
void appendString(java.lang.StringBuilder sb)
- Specified by:
appendString
in classAsciiStringInterner.BaseKey
-
-