public abstract class AbstractCapability extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCapability(String name,
Set<String> requirements,
Set<String> optionalRequirements)
Creates a new capability
|
protected |
AbstractCapability(String name,
String... requirements)
Creates a new capability
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getName()
Gets the name of the capability.
|
Set<String> |
getOptionalRequirements()
Gets the names of other capabilities optionally required by this capability.
|
Set<String> |
getRequirements()
Gets the names of other capabilities required by this capability.
|
int |
hashCode() |
String |
toString() |
protected AbstractCapability(String name, Set<String> requirements, Set<String> optionalRequirements)
name - the name of the capability. Cannot be nullrequirements - names of other capabilities upon which this capability has a hard requirement. May be nulloptionalRequirements - names of other capabilities upon which this capability has an optional requirement. May be nullpublic String getName()
nullpublic Set<String> getRequirements()
null but may be empty.public Set<String> getOptionalRequirements()
null but may be empty.public boolean equals(Object o)
Copyright © 2015 JBoss by Red Hat. All rights reserved.