public abstract class AbstractScoredId extends Object implements ScoredId
ScoredId implementations providing
equals and hashCode methods.| Constructor and Description |
|---|
AbstractScoredId() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Set<TypedSymbol<?>> |
getChannelSymbols()
Determine the typed symbols associated with all side channels of a
ScoredId. |
Collection<DoubleSymbolValue> |
getUnboxedChannels()
Get the unboxed channels associated with a scored ID.
|
Set<Symbol> |
getUnboxedChannelSymbols()
Determine the symbols associated with all unboxed double side channels of a
ScoredId. |
boolean |
hasChannel(TypedSymbol<?> sym)
Determine if a
ScoredId has a specific typed channel. |
int |
hashCode() |
boolean |
hasUnboxedChannel(Symbol sym)
Determine if a
ScoredId has a specific channel. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChannels, getChannelValue, getId, getScore, getUnboxedChannelValue@Nonnull public Collection<DoubleSymbolValue> getUnboxedChannels()
ScoredIdgetUnboxedChannels in interface ScoredIdpublic Set<TypedSymbol<?>> getChannelSymbols()
ScoredIdScoredId.getChannelSymbols in interface ScoredIdTypedSymbol objects, each of which maps to a value in
one of the ScoredId's side channels.public Set<Symbol> getUnboxedChannelSymbols()
ScoredIdScoredId.getUnboxedChannelSymbols in interface ScoredIdSymbol objects, each of which maps to a value in
one of the ScoredId's unboxed double side channels.public boolean hasChannel(TypedSymbol<?> sym)
ScoredId has a specific typed channel.
This implementation scans the result of ScoredId.getChannels() for a matching channel.hasChannel in interface ScoredIdsym - The typed side channel's symbol.true if the ScoredId has a channel associated
with this symbol, false otherwise.public boolean hasUnboxedChannel(Symbol sym)
ScoredId has a specific channel.
This implementation delgates to hasChannel(TypedSymbol).hasUnboxedChannel in interface ScoredIdsym -