Get the score as a Boolean wrapped in a container where the outermost container type is Option.
Get the score as a Boolean wrapped in a container where the outermost container type is Option. If the Score object doesn't contain a valid score, Return None; otherwise return Some. Note that subclasses will contain different representations of score.
the score
Convert a score to a container the score.
Convert a score to a container the score.
the type to which the score should be converted.
the score
a container containing a value of the expected output type.
If no score is present, return None; if a score is present but the wrong type of score was queried, throw an com.eharmony.aloha.score.proto.conversions.IncorrectScoreTypeAccessException.
If no score is present, return None; if a score is present but the wrong type of score was queried, throw an com.eharmony.aloha.score.proto.conversions.IncorrectScoreTypeAccessException.
This object differentiates between a missing score and a score that could not be retrieved because the wrong type was queried. This is harder to deal with than com.eharmony.aloha.score.proto.conversions.RelaxedConversions but encodes additional information. Example usage:
Note: If the score value in the score doesn't exist, then the java converters will return null. If however a score exists but the data type contained in the score is different from the queried type, the java-oriented converters will throw an com.eharmony.aloha.score.proto.conversions.IncorrectScoreTypeAccessException.