org.torweg.pulse.component.statistics.model
Class AbstractVersion<T>
java.lang.Object
org.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.util.entity.AbstractNamedEntity
org.torweg.pulse.component.statistics.model.AbstractVersion<T>
- Type Parameters:
T - the type of the match; see: AbstractVersion<T>.isMatch(T)
- All Implemented Interfaces:
- java.io.Serializable, INamed
- Direct Known Subclasses:
- RegexVersion
@MappedSuperclass
public abstract class AbstractVersion<T>
- extends AbstractNamedEntity
An abstract base class to derive a statistical entity from, which represents
a version.
To be removed if no further sub-classes are to be derived from
AbstractVersion.
- Version:
- $Revision: 1548 $
- Author:
- Daniel Dietz
- See Also:
- Serialized Form
|
Method Summary |
abstract boolean |
isMatch(T match)
|
void |
setName(java.lang.String n)
Sets the display name. |
java.lang.String |
toString()
Returns a string representation of the Version. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AbstractVersion
public AbstractVersion()
setName
public final void setName(java.lang.String n)
- Sets the display name.
- Overrides:
setName in class AbstractNamedEntity
- Parameters:
n - the name
- Throws:
java.lang.IllegalArgumentException - if the given name is null or empty string- See Also:
INameable.setName(java.lang.String)
isMatch
public abstract boolean isMatch(T match)
- Parameters:
match - the <T> to match
- Returns:
true if and only if the given >T< matches,
false otherwise
toString
public java.lang.String toString()
- Returns a string representation of the
Version.
- Overrides:
toString in class java.lang.Object
- Returns:
- a string representation of the
Version