public class ChunkAttributes extends Object implements Serializable, com.google.gson.JsonSerializer<ChunkAttributes>, com.google.gson.JsonDeserializer<ChunkAttributes>
| Modifier and Type | Field and Description |
|---|---|
static String |
CHUNK_GRID |
static String |
CHUNK_KEY_ENCODING |
| Constructor and Description |
|---|
ChunkAttributes(ChunkGrid grid,
ChunkKeyEncoding keyEncoding) |
| Modifier and Type | Method and Description |
|---|---|
ChunkAttributes |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
String |
getChunkPath(long[] gridPosition) |
ChunkGrid |
getGrid() |
static ChunkAttributes |
getJsonAdapter() |
ChunkKeyEncoding |
getKeyEncoding() |
com.google.gson.JsonElement |
serialize(ChunkAttributes src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
String |
toString() |
public static final String CHUNK_GRID
public static final String CHUNK_KEY_ENCODING
public ChunkAttributes(ChunkGrid grid, ChunkKeyEncoding keyEncoding)
public ChunkGrid getGrid()
public ChunkKeyEncoding getKeyEncoding()
public String getChunkPath(long[] gridPosition)
public static ChunkAttributes getJsonAdapter()
public ChunkAttributes deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize in interface com.google.gson.JsonDeserializer<ChunkAttributes>com.google.gson.JsonParseExceptionpublic com.google.gson.JsonElement serialize(ChunkAttributes src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize in interface com.google.gson.JsonSerializer<ChunkAttributes>Copyright © 2019–2026 Saalfeld Lab. All rights reserved.