Package dev.cel.common.internal
Class ProtoEquality
- java.lang.Object
-
- dev.cel.common.internal.ProtoEquality
-
@CheckReturnValue @Immutable @Internal public final class ProtoEquality extends java.lang.Object
TheProtoEqualityimplementation is an alternative to theMessage.equals(java.lang.Object)implementation that is consistent with the C++MessageDifferencer::Equalsdefinition.These are the key differences between CEL's proto equality and Java's proto equality:
-
NaN is not equal to itself.
Any values are unpacked before comparison.
If two Any values cannot be unpacked, they are compared by bytes.
CEL Library Internals. Do Not Use.
-
-
Constructor Summary
Constructors Constructor Description ProtoEquality(DynamicProto dynamicProto)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Message message1, Message message2)
-
-
-
Constructor Detail
-
ProtoEquality
public ProtoEquality(DynamicProto dynamicProto)
-
-