Class CmpPair<B,​W>


  • public class CmpPair<B,​W>
    extends Object
    Compare pair that represents compare result between base object from base collection and working object from working collection that are matched by the same key.
    • Method Detail

      • updated

        public static <B,​W> CmpPair<B,​W> updated​(Serializable key,
                                                             B base,
                                                             W working)
      • getKey

        public Serializable getKey()
        Returns:
        key that matched base and working objects
      • getBase

        public B getBase()
        Returns:
        base object or null if object does not exist in base collection
      • getWorking

        public W getWorking()
        Returns:
        base object or null if object does not exist in working collection
      • getLatest

        public Object getLatest()
        Returns:
        latest nonnull object - working is considered latest
      • getDiff

        public Diff getDiff()
        Returns:
        difference type between matched base and working objects