@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); }
/** * {@inheritDoc} */ public boolean equals(Object obj) { return worklist.equals(obj); }
@Override @ExpectWarning("BC") public boolean equals(Object o) { return lst.equals(((BadDowncastOfToArray) o).lst); }
/** * @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); }
public boolean equals(final SimpleName simpleName) { return simpleName != null && simpleName.getClass() == getClass() && segments.equals(simpleName.segments); }
@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); }
@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); }
@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); }
@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); }
@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); }
@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)); }
@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; }
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); } }
@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(); }
/** {@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; }
/** {@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); } }
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)); }