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, wait
getChannels, getChannelValue, getId, getScore, getUnboxedChannelValue
@Nonnull public Collection<DoubleSymbolValue> getUnboxedChannels()
ScoredId
getUnboxedChannels
in interface ScoredId
public Set<TypedSymbol<?>> getChannelSymbols()
ScoredId
ScoredId
.getChannelSymbols
in interface ScoredId
TypedSymbol
objects, each of which maps to a value in
one of the ScoredId
's side channels.public Set<Symbol> getUnboxedChannelSymbols()
ScoredId
ScoredId
.getUnboxedChannelSymbols
in interface ScoredId
Symbol
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 ScoredId
sym
- 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 ScoredId
sym
-