public class MaxValueCountElem
extends java.lang.Object
MaxValueCount.| Modifier and Type | Field and Description |
|---|---|
private AttributeType |
attributeType
The targeted AttributeType
|
private int |
maxCount
The maximum number of accepted values for this attributeType
|
| Constructor and Description |
|---|
MaxValueCountElem(AttributeType attributeType,
int maxCount)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
AttributeType |
getAttributeType()
Gets the attribute to limit the maximum count.
|
int |
getMaxCount()
Gets the maximum count of the attribute allowed.
|
int |
hashCode() |
java.lang.String |
toString() |
private AttributeType attributeType
private int maxCount
public MaxValueCountElem(AttributeType attributeType, int maxCount)
attributeType - the attribute ID to limit the maximum countmaxCount - the maximum count of the attribute allowedpublic AttributeType getAttributeType()
public int getMaxCount()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object