Java Collection Compare compareRef(final Collection left, final Collection right)

Here you can find the source of compareRef(final Collection left, final Collection right)

Description

compare Ref

License

Open Source License

Parameter

Parameter Description
left a parameter
right a parameter

Declaration

private static boolean compareRef(final Collection left, final Collection right) 

Method Source Code


//package com.java2s;

import java.util.Collection;

public class Main {
    /**/*  w  ww .  java  2 s.  c  om*/
     * 
     * 
     * @param left
     * @param right
     * @return
     */
    private static boolean compareRef(final Collection left, final Collection right) {
        if (left == right) {
            return true;
        }
        return false;
    }
}

Related

  1. compareAnyOrder(Collection c1, Collection c2)
  2. compareCollections(Collection a, Collection b)
  3. compareCollections(Collection cola, Collection colb)
  4. compareCollections(Collection value1, Collection value2)
  5. compareExactOrder(Collection c1, Collection c2)
  6. compareSet(Collection s1, Collection s2)
  7. compareTo(Collection o1, Collection o2)
  8. compareTo(Collection a, Collection b)