Class DefaultComparisonState<I>

    • Constructor Detail

      • DefaultComparisonState

        public DefaultComparisonState​(I reference,
                                      java.util.List<I> allObjects)
    • Method Detail

      • getReference

        public I getReference()
        Description copied from interface: ComparisonState
        Gets a reference object against which a comparison is being performed
        Specified by:
        getReference in interface ComparisonState<I>
        Returns:
        reference object
      • setObjectCompared

        @Deprecated(since="1811",
                    forRemoval=true)
        public void setObjectCompared​(I object)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811. Please use setObjectCompared(Object, Object)
      • setObjectCompared

        public void setObjectCompared​(java.lang.Object id,
                                      I object)
      • setObjectIdCompared

        protected void setObjectIdCompared​(java.lang.Object id)
      • removeObjectFromCompared

        @Deprecated(since="1811",
                    forRemoval=true)
        public void removeObjectFromCompared​(I object)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1811. Please use removeObjectFromCompared(Object)
      • removeObjectFromCompared

        public void removeObjectFromCompared​(java.lang.Object id,
                                             I object)
      • getComparedObjects

        public java.util.List<I> getComparedObjects()
        Description copied from interface: ComparisonState
        Gets a list of objects that has been compared against reference up until now.
        Specified by:
        getComparedObjects in interface ComparisonState<I>
        Returns:
        list of compared objects
      • getComparedObjectIds

        public java.util.List<java.lang.Object> getComparedObjectIds()
        Description copied from interface: ComparisonState
        Gets a list of object ids that has been compared against reference up until now.
        Specified by:
        getComparedObjectIds in interface ComparisonState<I>
        Returns:
        list of compared objects
      • getComparedObjectIdsMutable

        protected java.util.List<java.lang.Object> getComparedObjectIdsMutable()
      • getComparedObjectsMutable

        protected java.util.List<I> getComparedObjectsMutable()
      • getAllObjects

        public java.util.List<I> getAllObjects()
        Description copied from interface: ComparisonState
        Gets all objects that should be compared. Returned list contains those that are already compared and those that will be compared in the future.
        Specified by:
        getAllObjects in interface ComparisonState<I>
        Returns:
        list of all objects to be compared
      • getAllObjectsMutable

        protected java.util.List<I> getAllObjectsMutable()