public final class MRVMGenericDefinition extends Object implements GenericDefinition<MRVMLicense>
| Constructor and Description |
|---|
MRVMGenericDefinition(MRVMBand band,
MRVMRegionsMap.Region region) |
| Modifier and Type | Method and Description |
|---|---|
Set<MRVMLicense> |
allLicenses() |
void |
checkQuantityIsValid(int quantity) |
boolean |
equals(Object obj) |
MRVMBand |
getBand() |
MRVMRegionsMap.Region |
getRegion() |
int |
hashCode() |
boolean |
isPartOf(MRVMLicense 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(MRVMLicense license)
isPartOf in interface GenericDefinition<MRVMLicense>GenericDefinition.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 GenericDefinition<MRVMLicense>GenericDefinition.numberOfLicenses()public Set<MRVMLicense> allLicenses()
allLicenses in interface GenericDefinition<MRVMLicense>GenericDefinition.allLicenses()public com.google.gson.JsonElement shortJson()
shortJson in interface GenericDefinition<MRVMLicense>GenericDefinition.shortJson()Copyright © 2018. All rights reserved.