Class AllocationLimitAdapter
- java.lang.Object
-
- org.spectrumauctions.sats.core.util.file.gson.AllocationLimitAdapter
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<org.marketdesignresearch.mechlib.core.allocationlimits.AllocationLimit>,com.google.gson.JsonSerializer<org.marketdesignresearch.mechlib.core.allocationlimits.AllocationLimit>
public class AllocationLimitAdapter extends java.lang.Object implements com.google.gson.JsonSerializer<org.marketdesignresearch.mechlib.core.allocationlimits.AllocationLimit>, com.google.gson.JsonDeserializer<org.marketdesignresearch.mechlib.core.allocationlimits.AllocationLimit>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAllocationLimitAdapter.SerializedAllocationLimit
-
Constructor Summary
Constructors Constructor Description AllocationLimitAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.marketdesignresearch.mechlib.core.allocationlimits.AllocationLimitdeserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context)com.google.gson.JsonElementserialize(org.marketdesignresearch.mechlib.core.allocationlimits.AllocationLimit src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)voidsetWorld(World world)
-
-
-
Method Detail
-
deserialize
public org.marketdesignresearch.mechlib.core.allocationlimits.AllocationLimit deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<org.marketdesignresearch.mechlib.core.allocationlimits.AllocationLimit>- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(org.marketdesignresearch.mechlib.core.allocationlimits.AllocationLimit src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)- Specified by:
serializein interfacecom.google.gson.JsonSerializer<org.marketdesignresearch.mechlib.core.allocationlimits.AllocationLimit>
-
setWorld
public void setWorld(World world)
-
-