Package io.protostuff.runtime
Class HashFieldMap<T>
java.lang.Object
io.protostuff.runtime.HashFieldMap<T>
- All Implemented Interfaces:
FieldMap<T>
Field mapping implemented on top of hash for field lookup by number.
This is the less efficient than
ArrayFieldMap
for almost all cases.
But in case when field numbers are sparse and especially when max field
number is big - this mapping should be used.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
FIELD_COMPARATOR
-
fields
-
fieldsByNumber
-
fieldsByName
-
-
Constructor Details
-
HashFieldMap
-
-
Method Details
-
getFieldByNumber
- Specified by:
getFieldByNumber
in interfaceFieldMap<T>
-
getFieldByName
- Specified by:
getFieldByName
in interfaceFieldMap<T>
-
getFieldCount
public int getFieldCount()- Specified by:
getFieldCount
in interfaceFieldMap<T>
-
getFields
-