Class AtomicReferenceArrayElementComparisonStrategy<T>

    • Field Detail

      • elementComparator

        private java.util.Comparator<? super T> elementComparator
    • Constructor Detail

      • AtomicReferenceArrayElementComparisonStrategy

        public AtomicReferenceArrayElementComparisonStrategy​(java.util.Comparator<? super T> elementComparator)
    • Method Detail

      • areEqual

        public boolean areEqual​(java.lang.Object actual,
                                java.lang.Object other)
        Description copied from class: StandardComparisonStrategy
        Returns true if actual and other are equal based on Objects.deepEquals(Object, Object), false otherwise.
        Specified by:
        areEqual in interface ComparisonStrategy
        Overrides:
        areEqual in class StandardComparisonStrategy
        Parameters:
        actual - the object to compare to other
        other - the object to compare to actual
        Returns:
        true if actual and other are equal based on Objects.deepEquals(Object, Object), false otherwise.
      • compareElementsOf

        private boolean compareElementsOf​(java.util.concurrent.atomic.AtomicReferenceArray<T> actual,
                                          T[] other)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object