public abstract class AbstractScoredId extends java.lang.Object implements ScoredId
ScoredId
implementations providing
equals
and hashCode
methods.Compatibility: Public
Constructor and Description |
---|
AbstractScoredId() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Set<TypedSymbol<?>> |
getChannelSymbols()
Determine the typed symbols associated with all side channels of a
ScoredId . |
java.util.Collection<DoubleSymbolValue> |
getUnboxedChannels()
Get the unboxed channels associated with a scored ID.
|
java.util.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. |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChannels, getChannelValue, getId, getScore, getUnboxedChannelValue
@Nonnull public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
@Nonnull public java.util.Collection<DoubleSymbolValue> getUnboxedChannels()
ScoredId
getUnboxedChannels
in interface ScoredId
public java.util.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 java.util.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
-