Tabnine Logo
ArrayList.equals
Code IndexAdd Tabnine to your IDE (free)

How to use
equals
method
in
java.util.ArrayList

Best Java code snippets using java.util.ArrayList.equals (Showing top 20 results out of 2,520)

origin: ReactiveX/RxJava

@Override
public boolean equals(Object obj) {
  if (obj instanceof VolatileSizeArrayList) {
    return list.equals(((VolatileSizeArrayList<?>)obj).list);
  }
  return list.equals(obj);
}
origin: redisson/redisson

@Override
public boolean equals(Object obj) {
  if (obj instanceof VolatileSizeArrayList) {
    return list.equals(((VolatileSizeArrayList<?>)obj).list);
  }
  return list.equals(obj);
}
origin: Alluxio/alluxio

@Override
public boolean equals(Object o) {
 if (this == o) {
  return true;
 }
 if (!(o instanceof BlockInfo)) {
  return false;
 }
 BlockInfo that = (BlockInfo) o;
 return mBlockId == that.mBlockId && mLength == that.mLength
   && mLocations.equals(that.mLocations);
}
origin: eclipse-vertx/vert.x

@Override
public boolean equals(Object o) {
 if (this == o) return true;
 if (o == null || getClass() != o.getClass()) return false;
 PemTrustOptions that = (PemTrustOptions) o;
 if (!certPaths.equals(that.certPaths)) return false;
 return certValues.equals(that.certValues);
}
origin: Sable/soot

/**
 * {@inheritDoc}
 */
public boolean equals(Object obj) {
 return worklist.equals(obj);
}
origin: spotbugs/spotbugs

@Override
@ExpectWarning("BC")
public boolean equals(Object o) {
  return lst.equals(((BadDowncastOfToArray) o).lst);
}
origin: mttkay/ignition

/**
 * @see java.lang.Object#equals(java.lang.Object)
 */
@Override
public synchronized boolean equals(Object o) {
  if (!(o instanceof CachedList)) {
    return false;
  }
  @SuppressWarnings("rawtypes")
  CachedList that = (CachedList) o;
  return clazz.equals(that.clazz) && list.equals(that.list);
}
origin: wildfly/wildfly

public boolean equals(final SimpleName simpleName) {
  return simpleName != null && simpleName.getClass() == getClass() && segments.equals(simpleName.segments);
}
origin: spotbugs/spotbugs

@Override
public boolean equals(Object obj) {
  if (obj == null || obj.getClass() != this.getClass()) {
    return false;
  }
  CallList other = (CallList) obj;
  return this.callList.equals(other.callList);
}
origin: Alluxio/alluxio

@Override
public boolean equals(Object o) {
 if (this == o) {
  return true;
 }
 if (!(o instanceof FileBlockInfo)) {
  return false;
 }
 FileBlockInfo that = (FileBlockInfo) o;
 return mBlockInfo.equals(that.mBlockInfo) && mOffset == that.mOffset
   && mUfsLocations.equals(that.mUfsLocations);
}
origin: apache/hbase

@Override
public boolean equals(Object obj) {
 if (!(obj instanceof FilterListWithAND)) {
  return false;
 }
 if (this == obj) {
  return true;
 }
 FilterListWithAND f = (FilterListWithAND) obj;
 return this.filters.equals(f.getFilters()) && this.seekHintFilters.equals(f.seekHintFilters);
}
origin: apache/hive

@Override
public boolean equals(Object obj) {
 if (obj == null || !(obj instanceof OpTreeSignature)) {
  return false;
 }
 if (obj == this) {
  return true;
 }
 OpTreeSignature o = (OpTreeSignature) obj;
 return sig.equals(o.sig) && parentSig.equals(o.parentSig);
}
origin: apache/hbase

@Override
public boolean equals(Object obj) {
 if (obj == null || (!(obj instanceof FilterListWithOR))) {
  return false;
 }
 if (this == obj) {
  return true;
 }
 FilterListWithOR f = (FilterListWithOR) obj;
 return this.filters.equals(f.getFilters()) &&
  this.prevFilterRCList.equals(f.prevFilterRCList) &&
  this.prevCellList.equals(f.prevCellList);
}
origin: apache/hive

@Override
public boolean equals(Object obj) {
 if (obj == null) {
  return false;
 }
 InputSignature other = null;
 try {
  other = (InputSignature) obj;
 } catch (ClassCastException cce) {
  return false;
 }
 return name.equalsIgnoreCase(other.getName())
   && (other.typeArray.equals(typeArray));
}
origin: eclipse-vertx/vert.x

@Override
public boolean equals(Object o) {
 if (this == o) return true;
 if (!(o instanceof TCPSSLOptions)) return false;
 if (!super.equals(o)) return false;
 TCPSSLOptions that = (TCPSSLOptions) o;
 if (idleTimeout != that.idleTimeout) return false;
 if (idleTimeoutUnit != null ? !idleTimeoutUnit.equals(that.idleTimeoutUnit) : that.idleTimeoutUnit != null) return false;
 if (soLinger != that.soLinger) return false;
 if (ssl != that.ssl) return false;
 if (tcpKeepAlive != that.tcpKeepAlive) return false;
 if (tcpNoDelay != that.tcpNoDelay) return false;
 if (tcpFastOpen != that.tcpFastOpen) return false;
 if (tcpQuickAck != that.tcpQuickAck) return false;
 if (tcpCork != that.tcpCork) return false;
 if (usePooledBuffers != that.usePooledBuffers) return false;
 if (crlPaths != null ? !crlPaths.equals(that.crlPaths) : that.crlPaths != null) return false;
 if (crlValues != null ? !crlValues.equals(that.crlValues) : that.crlValues != null) return false;
 if (enabledCipherSuites != null ? !enabledCipherSuites.equals(that.enabledCipherSuites) : that.enabledCipherSuites != null)
  return false;
 if (keyCertOptions != null ? !keyCertOptions.equals(that.keyCertOptions) : that.keyCertOptions != null) return false;
 if (trustOptions != null ? !trustOptions.equals(that.trustOptions) : that.trustOptions != null) return false;
 if (useAlpn != that.useAlpn) return false;
 if (sslEngineOptions != null ? !sslEngineOptions.equals(that.sslEngineOptions) : that.sslEngineOptions != null) return false;
 if (!enabledSecureTransportProtocols.equals(that.enabledSecureTransportProtocols)) return false;
 return true;
}
origin: spotbugs/spotbugs

  public static void falsePositive() {
    ArrayList<Integer> aLst = new ArrayList<Integer>();
    LinkedList<Integer> lLst = new LinkedList<Integer>();
    MyList<Integer> mLst = new MyList<Integer>();

    Set<ArrayList<Integer>> alSet = new HashSet<ArrayList<Integer>>();
    Set<LinkedList<Integer>> llSet = new HashSet<LinkedList<Integer>>();

    System.out.println(aLst.equals(lLst));
    System.out.println(mLst.equals(lLst));

    alSet.contains(lLst);
    alSet.contains(mLst);
    alSet.containsAll(llSet);

  }
}
origin: jMonkeyEngine/jmonkeyengine

@Override
public void writeFloatBufferArrayList(ArrayList<FloatBuffer> array, String name, ArrayList<FloatBuffer> defVal) throws IOException {
  if (array == null) {
    return;
  }
  if (array.equals(defVal)) {
    return;
  }
  Element el = appendElement(name);
  el.setAttribute(XMLExporter.ATTRIBUTE_SIZE, String.valueOf(array.size()));
  for (FloatBuffer o : array) {
    write(o, XMLExporter.ELEMENT_FLOATBUFFER, null);
  }
  currentElement = (Element) el.getParentNode();
}
origin: apache/ignite

/** {@inheritDoc} */
@Override public boolean equals(Object o) {
  if (this == o) return true;
  if (o == null || getClass() != o.getClass()) return false;
  InnerType innerType = (InnerType) o;
  if (innerLongCol != null ? !innerLongCol.equals(innerType.innerLongCol) : innerType.innerLongCol != null)
    return false;
  if (innerStrCol != null ? !innerStrCol.equals(innerType.innerStrCol) : innerType.innerStrCol != null)
    return false;
  return arrListCol != null ? arrListCol.equals(innerType.arrListCol) : innerType.arrListCol == null;
}
origin: apache/ignite

  /** {@inheritDoc} */
  @Override public boolean equals(Object other) {
    if (this == other)
      return true;
    if (other == null || getClass() != other.getClass())
      return false;
    TestObject obj = (TestObject)other;
    assert this == selfRef;
    assert obj == obj.selfRef;
    return boolVal == obj.boolVal && intVal == obj.intVal && longVal == obj.longVal &&
      Arrays.equals(dblArr, obj.dblArr) && Arrays.equals(longArr, obj.longArr) &&
      list.equals(obj.list) && map.equals(obj.map);
  }
}
origin: apache/storm

private void checkCollectorOutput_seq(MockCollector collector, Path... seqFiles) throws IOException {
  ArrayList<String> expected = new ArrayList<>();
  for (Path seqFile : seqFiles) {
    List<String> lines = getSeqFileContents(fs, seqFile);
    expected.addAll(lines);
  }
  Assert.assertTrue(expected.equals(collector.lines));
}
java.utilArrayListequals

Javadoc

Compares the specified object with this list for equality.

Popular methods of ArrayList

  • <init>
  • add
  • size
    Returns the number of elements in this ArrayList.
  • get
    Returns the element at the specified position in this list.
  • toArray
    Returns an array containing all of the elements in this list in proper sequence (from first to last
  • addAll
    Adds the objects in the specified collection to this ArrayList.
  • remove
    Removes the first occurrence of the specified element from this list, if it is present. If the list
  • clear
    Removes all elements from this ArrayList, leaving it empty.
  • isEmpty
    Returns true if this list contains no elements.
  • iterator
    Returns an iterator over the elements in this list in proper sequence.The returned iterator is fail-
  • contains
    Searches this ArrayList for the specified object.
  • set
    Replaces the element at the specified position in this list with the specified element.
  • contains,
  • set,
  • indexOf,
  • clone,
  • subList,
  • stream,
  • ensureCapacity,
  • trimToSize,
  • removeAll,
  • toString

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now