Package com.google.common.geometry
Class S2CellIdVectorCoder
- java.lang.Object
-
- com.google.common.geometry.S2CellIdVectorCoder
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static S2CellIdVectorCoderINSTANCEAn instance of anS2CellIdVectorCoder.
-
Constructor Summary
Constructors Constructor Description S2CellIdVectorCoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S2CellIdVectordecode(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor)voidencode(java.util.List<S2CellId> values, java.io.OutputStream output)Encodesvaluetooutput.
-
-
-
Field Detail
-
INSTANCE
static final S2CellIdVectorCoder INSTANCE
An instance of anS2CellIdVectorCoder.
-
-
Method Detail
-
encode
public void encode(java.util.List<S2CellId> values, java.io.OutputStream output) throws java.io.IOException
Description copied from interface:S2CoderEncodesvaluetooutput.
-
decode
public S2CellIdVector decode(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor)
Description copied from interface:S2CoderDecodes a value of typeS2Coderfromdatastarting atcursor.position.cursor.positionis updated to the position of the first byte indatafollowing the encoded value.
-
-