Modifier and Type | Field and Description |
---|---|
protected com.google.gson.JsonObject |
diffMappings |
protected com.google.gson.JsonElement |
mapped |
protected int |
mappedSize |
protected int |
size |
protected Mappings.MappingsSupplier<T> |
supplier |
protected com.google.gson.JsonElement |
unmapped |
protected boolean |
warnOnMissing |
Modifier | Constructor and Description |
---|---|
protected |
Builder(Mappings.MappingsSupplier<T> supplier) |
Modifier and Type | Method and Description |
---|---|
T |
build() |
Mappings.Builder<T> |
customEntrySize(int size)
Sets a custom entry size different to the size of the unmapped collection.
|
Mappings.Builder<T> |
customMappedSize(int size)
Sets a custom entry mapped ids count different to the size of the mapped collection.
|
Mappings.Builder<T> |
diffMappings(com.google.gson.JsonObject diffMappings) |
Mappings.Builder<T> |
mapped(com.google.gson.JsonArray mappedArray) |
Mappings.Builder<T> |
mapped(com.google.gson.JsonObject mappedObject) |
protected int |
size(com.google.gson.JsonElement element) |
protected com.google.gson.JsonObject |
toJsonObject(com.google.gson.JsonArray array) |
Mappings.Builder<T> |
unmapped(com.google.gson.JsonArray unmappedArray) |
Mappings.Builder<T> |
unmapped(com.google.gson.JsonObject unmappedObject) |
Mappings.Builder<T> |
warnOnMissing(boolean warnOnMissing)
Sets whether warnings should be logged for missing mapped ids.
|
protected final Mappings.MappingsSupplier<T extends Mappings> supplier
protected com.google.gson.JsonElement unmapped
protected com.google.gson.JsonElement mapped
protected com.google.gson.JsonObject diffMappings
protected int mappedSize
protected int size
protected boolean warnOnMissing
protected Builder(Mappings.MappingsSupplier<T> supplier)
public Mappings.Builder<T> customEntrySize(int size)
size
- custom entry sizepublic Mappings.Builder<T> customMappedSize(int size)
size
- custom mapped id countpublic Mappings.Builder<T> warnOnMissing(boolean warnOnMissing)
warnOnMissing
- whether warnings should be logged for missing mapped idspublic Mappings.Builder<T> unmapped(com.google.gson.JsonArray unmappedArray)
public Mappings.Builder<T> unmapped(com.google.gson.JsonObject unmappedObject)
public Mappings.Builder<T> mapped(com.google.gson.JsonArray mappedArray)
public Mappings.Builder<T> mapped(com.google.gson.JsonObject mappedObject)
public Mappings.Builder<T> diffMappings(com.google.gson.JsonObject diffMappings)
public T build()
protected int size(com.google.gson.JsonElement element)
protected com.google.gson.JsonObject toJsonObject(com.google.gson.JsonArray array)