public final class MRVMGenericDefinition extends Object implements GenericDefinition
| Constructor and Description |
|---|
MRVMGenericDefinition(MRVMBand band,
MRVMRegionsMap.Region region) |
| Modifier and Type | Method and Description |
|---|---|
Set<Good> |
allLicenses() |
void |
checkQuantityIsValid(int quantity) |
boolean |
equals(Object obj) |
MRVMBand |
getBand() |
MRVMRegionsMap.Region |
getRegion() |
int |
hashCode() |
boolean |
isPartOf(Good license) |
int |
numberOfLicenses() |
com.google.gson.JsonElement |
shortJson() |
String |
toString() |
public MRVMGenericDefinition(MRVMBand band, MRVMRegionsMap.Region region)
public MRVMBand getBand()
public MRVMRegionsMap.Region getRegion()
public boolean isPartOf(Good license)
isPartOf in interface GenericDefinitionGenericDefinition.isPartOf(Good)public void checkQuantityIsValid(int quantity)
IllegalArgumentException - if the quantity is negative or exceeds the number of lots in this band.public int numberOfLicenses()
numberOfLicenses in interface GenericDefinitionGenericDefinition.numberOfLicenses()public Set<Good> allLicenses()
allLicenses in interface GenericDefinitionGenericDefinition.allLicenses()public com.google.gson.JsonElement shortJson()
shortJson in interface GenericDefinitionGenericDefinition.shortJson()Copyright © 2017. All rights reserved.