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 S2CellIdVectorCoder
INSTANCE
An instance of anS2CellIdVectorCoder
.
-
Constructor Summary
Constructors Constructor Description S2CellIdVectorCoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S2CellIdVector
decode(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor)
void
encode(java.util.List<S2CellId> values, java.io.OutputStream output)
Encodesvalue
tooutput
.
-
-
-
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:S2Coder
Encodesvalue
tooutput
.
-
decode
public S2CellIdVector decode(PrimitiveArrays.Bytes data, PrimitiveArrays.Cursor cursor)
Description copied from interface:S2Coder
Decodes a value of typeS2Coder
fromdata
starting atcursor.position
.cursor.position
is updated to the position of the first byte indata
following the encoded value.
-
-