public class LatestVersionOfName extends AbstractCartridgeConstraint
for cartridges that have already been added and
configured to an application.| Modifier and Type | Class and Description |
|---|---|
protected class |
LatestVersionOfName.VersionedName |
| Constructor and Description |
|---|
LatestVersionOfName(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
protected <C extends IEmbeddableCartridge> |
getLatest(List<C> matchingCartridges) |
<C extends IEmbeddableCartridge> |
getMatching(Collection<C> cartridges)
Returns the cartridge that matches this constraint.
|
String |
getNameConstraint() |
int |
hashCode() |
<C extends IEmbeddableCartridge> |
matches(C cartridge)
Returns
true if the given cartridge matches this constraint. |
public LatestVersionOfName(String name)
public String getNameConstraint()
public <C extends IEmbeddableCartridge> Collection<C> getMatching(Collection<C> cartridges)
ICartridgeConstraintgetMatching in interface ICartridgeConstraintgetMatching in class AbstractCartridgeConstraintcartridges - the cartridges that are available that shall get matched against this constraintpublic <C extends IEmbeddableCartridge> boolean matches(C cartridge)
ICartridgeConstrainttrue if the given cartridge matches this constraint.matches in interface ICartridgeConstraintmatches in class AbstractCartridgeConstraintcartridge - the cartridge that shall match this constraintprotected <C extends IEmbeddableCartridge> C getLatest(List<C> matchingCartridges)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.