Class ProtoEquality


  • @CheckReturnValue
    @Immutable
    @Internal
    public final class ProtoEquality
    extends java.lang.Object
    The ProtoEquality implementation is an alternative to the Message.equals(java.lang.Object) implementation that is consistent with the C++ MessageDifferencer::Equals definition.

    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.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Message message1, Message message2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProtoEquality

        public ProtoEquality​(DynamicProto dynamicProto)
    • Method Detail

      • equals

        public boolean equals​(Message message1,
                              Message message2)