public class Capacity extends java.lang.Object implements JCAMetadata, ValidatableMetadata
Modifier and Type | Class and Description |
---|---|
static class |
Capacity.Tag
A tag
|
Constructor and Description |
---|
Capacity(Extension incrementer,
Extension decrementer)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Extension |
getDecrementer()
Get the decrementer
|
Extension |
getIncrementer()
Get the incrementer
|
int |
hashCode() |
java.lang.String |
toString() |
void |
validate()
Validate this metadata according validation required by specification
|
public Capacity(Extension incrementer, Extension decrementer) throws ValidateException
incrementer
- The incrementer plugindecrementer
- The decrementer pluginValidateException
- in case of not valid metadata creationpublic Extension getIncrementer()
public Extension getDecrementer()
public void validate() throws ValidateException
ValidatableMetadata
validate
in interface ValidatableMetadata
ValidateException
- in case of validation failpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)