APISonar


java.util.ArrayList.equals

> java > util > ArrayList > equals
java APIs util APIs ArrayList APIs equals APIs

Example 1
protected ArrayList dflt;

    public boolean isDefault()
    {
        return dflt.equals(value);
    }
Example 2
private ArrayList<Long> mParents = new ArrayList<>();

  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof LineageInfo)) {
      return false;
    }
    LineageInfo that = (LineageInfo) o;
    return mId == that.mId && mInputFiles.equals(that.mInputFiles)
        && mOutputFiles.equals(that.mOutputFiles) && mJob.equals(that.mJob)
        && mCreationTimeMs == that.mCreationTimeMs && mParents.equals(that.mParents)
        && mChildren.equals(that.mChildren);
  }
Example 3
private final ArrayList<String> mInputs;

  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof CompactTask)) {
      return false;
    }
    CompactTask that = (CompactTask) o;
    return mInputs.equals(that.mInputs)
        && mOutput.equals(that.mOutput);
  }
Example 4
public final ArrayList<InetAddress> dnsServers;

    public boolean equals(Object obj) {
        if (this == obj) return true;

        if (!(obj instanceof StaticIpConfiguration)) return false;

        StaticIpConfiguration other = (StaticIpConfiguration) obj;

        return other != null &&
                Objects.equals(ipAddress, other.ipAddress) &&
                Objects.equals(gateway, other.gateway) &&
                dnsServers.equals(other.dnsServers) &&
                Objects.equals(domains, other.domains);
    }
Example 5
private final ArrayList<String> mFileSuffixList = new ArrayList<String>();

    public boolean equals(Object object) {
        if (object instanceof DrmSupportInfo) {
            DrmSupportInfo info = (DrmSupportInfo) object;
            return mFileSuffixList.equals(info.mFileSuffixList) &&
                   mMimeTypeList.equals(info.mMimeTypeList) &&
                   mDescription.equals(info.mDescription);
        }
        return false;
    }
Example 6
private ArrayList<Integer> nodeCount = new ArrayList<>(2);

    public boolean equals(Object o) {
        if (!(o instanceof ClusterState)) { return false; }
        ClusterState other = (ClusterState) o;
        if (version != other.version
            || !state.equals(other.state)
            || distributionBits != other.distributionBits
            || !nodeCount.equals(other.nodeCount)
            || !nodeStates.equals(other.nodeStates))
        {
            return false;
        }
        return true;
    }
Example 7
private ArrayList<String> mUfsLocations = new ArrayList<>();

  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);
  }
Example 8
protected final ArrayList<String> columnNames = new ArrayList<String>();

	public boolean equals(Object o) {
		if ( this == o ) {
			return true;
		}
		if ( o == null || getClass() != o.getClass() ) {
			return false;
		}

		AbstractConstraintSource that = (AbstractConstraintSource) o;
		return EqualsHelper.equals( name, that.name )
				&& EqualsHelper.equals( tableName, that.tableName )
				&& columnNames.equals( that.columnNames );
	}
Example 9
protected ArrayList<CO> list;

    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);
    }
Example 10
private final ArrayList<Color> mMainColors;

    public boolean equals(Object o) {
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        WallpaperColors other = (WallpaperColors) o;
        return mMainColors.equals(other.mMainColors)
                && mColorHints == other.mColorHints;
    }
Example 11
private ArrayList<RelTreeSignature> childSig;

  public boolean equals(Object obj) {

    if (!(obj instanceof RelTreeSignature)) {
      return false;
    }
    RelTreeSignature other = (RelTreeSignature) obj;
    return sig.equals(other.sig) && childSig.equals(other.childSig);
  }
Example 12
protected ArrayList<T> elements = new ArrayList<T>();

	public boolean equals(Object o) {
		if (!(o instanceof OrderedHashSet<?>)) {
			return false;
		}

//		System.out.print("equals " + this + ", " + o+" = ");
		boolean same = elements!=null && elements.equals(((OrderedHashSet<?>)o).elements);
//		System.out.println(same);
		return same;
	}
Example 13
private final ArrayList<String> lines;

    public boolean equals(Object other) {
        if (!(other instanceof CodeBuffer)) {
            return false;
        }
        CodeBuffer o = (CodeBuffer) other;
        return lines.equals(o.lines);
    }
Example 14
private ArrayList<ConfigCategory> children = new ArrayList<ConfigCategory>();

    public boolean equals(Object obj)
    {
        if (obj instanceof ConfigCategory)
        {
            ConfigCategory cat = (ConfigCategory)obj;
            return name.equals(cat.name) && children.equals(cat.children);
        }

        return false;
    }
Example 15
private ArrayList<OpTreeSignature> parentSig;

  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);
  }
Example 16
private final ArrayList<Datacenter> datacenters;

  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    HardwareLayout that = (HardwareLayout) o;

    if (!clusterName.equals(that.clusterName)) {
      return false;
    }
    return datacenters.equals(that.datacenters);
  }
Example 17
private final ArrayList myHighlightedRegions;

  public boolean equals(Object o) {
    if (!(o instanceof HighlightedText)) return false;

    HighlightedText highlightedText = (HighlightedText)o;

    if (!myBuffer.equals(highlightedText.myBuffer)) return false;
    if (!myHighlightedRegions.equals(highlightedText.myHighlightedRegions)) return false;

    return true;
  }
Example 18
private boolean equalFilters(ArrayList<Filter> filters1, ArrayList<Filter> filters2)
  {
     return (filters1 == filters2) ||
              ((filters1 != null) && filters1.equals(filters2));
  }
Example 19
private final ArrayList<Edit> container;

	public boolean equals(final Object o) {
		if (o instanceof EditList)
			return container.equals(((EditList) o).container);
		return false;
	}
Example 20
private ArrayList<HkpKeyserverAddress> mKeyserversMutable;

    private void saveKeyserverList() {
        if (mKeyserversMutable.equals(mKeyservers)) {
            return;
        }

        Preferences.getPreferences(getActivity()).setKeyServers(mKeyserversMutable);
        mKeyservers = Collections.unmodifiableList(new ArrayList<>(mKeyserversMutable));

        keyMetadataDao.resetAllLastUpdatedTimes();
    }
Example 21
private final ArrayList<String> mList;

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        PluginRunningList strings = (PluginRunningList) o;

        if (mPid != strings.mPid) return false;
        if (!mList.equals(strings.mList)) return false;

        return mProcessName != null ? mProcessName.equals(strings.mProcessName) : strings.mProcessName == null;
    }
Example 22
private ArrayList<Part> parts=new ArrayList<Part>();

    public boolean equals(Object other) {
        if(this==other) {
            return true;
        }
        if(other==null || getClass()!=other.getClass()) {
            return false;
        }
        MessagePattern o=(MessagePattern)other;
        return
            aposMode.equals(o.aposMode) &&
            (msg==null ? o.msg==null : msg.equals(o.msg)) &&
            parts.equals(o.parts);
        // No need to compare numericValues if msg and parts are the same.
    }
Example 23
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));
    }
Example 24
private ArrayList<BlockLocation> mLocations = new ArrayList<>();

  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);
  }
Example 25
private final ArrayList<ActionDescriptor> myActions = new ArrayList<ActionDescriptor>();

  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof ActionMacro)) return false;

    final ActionMacro actionMacro = (ActionMacro)o;

    if (!myActions.equals(actionMacro.myActions)) return false;
    if (!myName.equals(actionMacro.myName)) return false;

    return true;
  }