use of com.google.protobuf.Any in project core-java by SpineEventEngine.
the class FloatMismatch method unpackExpected.
/**
* Obtains expected float value from the passed mismatch.
*
* @throws RuntimeException if the passed instance represent a mismatch of non-float values
*/
public static float unpackExpected(ValueMismatch mismatch) {
checkNotNull(mismatch);
final Any expected = mismatch.getExpected();
return unpacked(expected);
}
use of com.google.protobuf.Any in project core-java by SpineEventEngine.
the class IntMismatch method unpackExpected.
/**
* Obtains expected int value from the passed mismatch.
*
* @throws RuntimeException if the passed instance represent a mismatch of non-int values
*/
public static int unpackExpected(ValueMismatch mismatch) {
checkNotNull(mismatch);
final Any expected = mismatch.getExpected();
return unpacked(expected);
}
use of com.google.protobuf.Any in project core-java by SpineEventEngine.
the class IntMismatch method unpackActual.
/**
* Obtains actual int value from the passed mismatch.
*
* @throws RuntimeException if the passed instance represent a mismatch of non-int values
*/
public static int unpackActual(ValueMismatch mismatch) {
checkNotNull(mismatch);
final Any actual = mismatch.getActual();
return unpacked(actual);
}
use of com.google.protobuf.Any in project core-java by SpineEventEngine.
the class BooleanMismatch method unpackNewValue.
/**
* Obtains new boolean value from the passed mismatch.
*
* @throws RuntimeException if the passed instance represent a mismatch of non-boolean values
*/
public static boolean unpackNewValue(ValueMismatch mismatch) {
checkNotNull(mismatch);
final Any newValue = mismatch.getNewValue();
return unpacked(newValue);
}
use of com.google.protobuf.Any in project core-java by SpineEventEngine.
the class BooleanMismatch method unpackExpected.
/**
* Obtains expected boolean value from the passed mismatch.
*
* @throws RuntimeException if the passed instance represent a mismatch of non-boolean values
*/
public static boolean unpackExpected(ValueMismatch mismatch) {
checkNotNull(mismatch);
final Any expected = mismatch.getExpected();
return unpacked(expected);
}
Aggregations