public int hashCode() { int hashCode = 1; int size = size(); for (int index = 0; index < size; index++) { Object obj = get(index); hashCode = 31*hashCode + (obj==null ? 0 : obj.hashCode()); } return hashCode; }
public int hashCode() { int hashCode = 1; int size = size(); for (int index = 0; index < size; index++) { Object obj = get(index); hashCode = 31*hashCode + (obj==null ? 0 : obj.hashCode()); } return hashCode; }
public int hashCode() { int hashCode = 1; int size = size(); for (int index = 0; index < size; index++) { Object obj = get(index); hashCode = 31*hashCode + (obj==null ? 0 : obj.hashCode()); } return hashCode; }
public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof List)) return false; List list = (List) o; int size = size(); if (list.size() != size) { return false; } for (int index = 0; index < size; index++) { Object left = get(index); Object right = list.get(index); if ((left != right) && ((left == null) || (right == null) || (!left.equals(right)))) { return false; } } return true; }
public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof List)) return false; List list = (List) o; int size = size(); if (list.size() != size) { return false; } for (int index = 0; index < size; index++) { Object left = get(index); Object right = list.get(index); if ((left != right) && ((left == null) || (right == null) || (!left.equals(right)))) { return false; } } return true; }
public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof List)) return false; List list = (List) o; int size = size(); if (list.size() != size) { return false; } for (int index = 0; index < size; index++) { Object left = get(index); Object right = list.get(index); if ((left != right) && ((left == null) || (right == null) || (!left.equals(right)))) { return false; } } return true; }