@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } DexKey dexKey = (DexKey) o; return mJumboMode == dexKey.mJumboMode && mOptimize == dexKey.mOptimize; }
attr.setValue(itemKey.getBuildToolsRevision().toString()); itemNode.getAttributes().setNamedItem(attr);
File inputFile = itemKey.getSourceFile();
throws ProcessException, InterruptedException, IOException { Key itemKey = Key.of(inputFile, buildToolInfo.getRevision());
File inputFile = itemKey.getSourceFile(); if (inputFile.isDirectory()) { throw new RuntimeException(
attr.setValue(itemKey.getBuildToolsRevision().toString()); itemNode.getAttributes().setNamedItem(attr);
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof DexKey)) { return false; } if (!super.equals(o)) { return false; } DexKey dexKey = (DexKey) o; if (mJumboMode != dexKey.mJumboMode) { return false; } return true; }
public static Key of(@NonNull File sourceFile, @NonNull FullRevision buildToolsRevision) { return new Key(sourceFile, buildToolsRevision); }
@Override public Key of(@NonNull File sourceFile, @NonNull FullRevision revision, @NonNull NamedNodeMap attrMap) { return Key.of(sourceFile, revision); } };
public static Key of(@NonNull File sourceFile, @NonNull Revision buildToolsRevision) { return new Key(sourceFile, buildToolsRevision); }
@Override public int hashCode() { return Objects.hashCode(super.hashCode(), mJumboMode, mOptimize); }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + (mJumboMode ? 1 : 0); return result; } }