@TypeInfo(value=LongValueWithProperHashCode.LongValueWithProperHashCodeTypeInfoFactory.class) public class LongValueWithProperHashCode extends LongValue
LongValue.hashCode()
.Modifier and Type | Class and Description |
---|---|
static class |
LongValueWithProperHashCode.LongValueWithProperHashCodeSerializer
Serializer for
LongValueWithProperHashCode . |
static class |
LongValueWithProperHashCode.LongValueWithProperHashCodeTypeInfo
A
TypeInformation for the LongValueWithProperHashCode type. |
static class |
LongValueWithProperHashCode.LongValueWithProperHashCodeTypeInfoFactory
|
Constructor and Description |
---|
LongValueWithProperHashCode()
Initializes the encapsulated long with 0.
|
LongValueWithProperHashCode(long value)
Initializes the encapsulated long with the specified value.
|
Modifier and Type | Method and Description |
---|---|
int |
hashCode()
All keys must override the hash-code function to generate proper deterministic hash codes,
based on their contents.
|
compareTo, copy, copy, copyNormalizedKey, copyTo, equals, getBinaryLength, getMaxNormalizedKeyLen, getValue, read, setValue, setValue, toString, write
public LongValueWithProperHashCode()
public LongValueWithProperHashCode(long value)
value
- Initial value of the encapsulated long.public int hashCode()
Key
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.