|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmythapi.impl.AVersionRange<V>
public abstract class AVersionRange<V extends Enum<V> & IVersion>
Field Summary | |
---|---|
protected V |
fromVersion
The lower-value of the version range. |
protected V |
toVersion
The higher-value of the version range. |
Constructor Summary | |
---|---|
AVersionRange(V from,
V to)
Constructs a version-range object from two version objects |
Method Summary | |
---|---|
boolean |
equals(Object paramObject)
|
V |
from()
Returns the version when a command or property was introduced. |
abstract boolean |
isInRange(int protoVersionNr)
Checks if the specified protocol-version is in this version-range. |
boolean |
isInRange(V protoVersion)
Checks if the specified protocol-version is in this version-range. |
V |
to()
Returns the version when a command or property was removed. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final V extends Enum<V> & IVersion fromVersion
protected final V extends Enum<V> & IVersion toVersion
Constructor Detail |
---|
public AVersionRange(V from, V to)
from
- the lower boundto
- the upper boundMethod Detail |
---|
public V from()
public V to()
For example a value of 3
means, that the command or property
is supported till version 2
.
The maximum supported version can be determined by calling
ProtocolVersion.getMaxVersion()
.
public boolean isInRange(V protoVersion)
protoVersion
- the protocol-version to check
true
if the given version is in the range.public abstract boolean isInRange(int protoVersionNr)
protoVersionNr
- the protocol-version to check
true
if the given version is in the range.public boolean equals(Object paramObject)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |