CrackMe.apk
Download file
package com.google.common.collect;
import com.google.common.collect.Table;
import com.google.errorprone.annotations.concurrent.LazyInit;
import java.util.AbstractCollection;
import java.util.AbstractSet;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import javax.annotation.CheckForNull;
@ElementTypesAreNonnullByDefault
abstract class AbstractTable<R, C, V> implements Table<R, C, V> {
@CheckForNull
@LazyInit
private transient Set<Table.Cell<R, C, V>> cellSet;
@CheckForNull
@LazyInit
private transient Collection<V> values;
/* access modifiers changed from: package-private */
public abstract Iterator<Table.Cell<R, C, V>> cellIterator();
AbstractTable() {
}
public boolean containsRow(@CheckForNull Object obj) {
return Maps.safeContainsKey(rowMap(), obj);
}
public boolean containsColumn(@CheckForNull Object obj) {
return Maps.safeContainsKey(columnMap(), obj);
}
public Set<R> rowKeySet() {
return rowMap().keySet();
}
public Set<C> columnKeySet() {
return columnMap().keySet();
}
public boolean containsValue(@CheckForNull Object obj) {
for (Map containsValue : rowMap().values()) {
if (containsValue.containsValue(obj)) {
return true;
}
}
return false;
}
public boolean contains(@CheckForNull Object obj, @CheckForNull Object obj2) {
Map map = (Map) Maps.safeGet(rowMap(), obj);
return map != null && Maps.safeContainsKey(map, obj2);
}
@CheckForNull
public V get(@CheckForNull Object obj, @CheckForNull Object obj2) {
Map map = (Map) Maps.safeGet(rowMap(), obj);
if (map == null) {
return null;
}
return Maps.safeGet(map, obj2);
}
public boolean isEmpty() {
return size() == 0;
}
public void clear() {
Iterators.clear(cellSet().iterator());
}
@CheckForNull
public V remove(@CheckForNull Object obj, @CheckForNull Object obj2) {
Map map = (Map) Maps.safeGet(rowMap(), obj);
if (map == null) {
return null;
}
return Maps.safeRemove(map, obj2);
}
@CheckForNull
public V put(@ParametricNullness R r, @ParametricNullness C c, @ParametricNullness V v) {
return row(r).put(c, v);
}
public void putAll(Table<? extends R, ? extends C, ? extends V> table) {
for (Table.Cell next : table.cellSet()) {
put(next.getRowKey(), next.getColumnKey(), next.getValue());
}
}
public Set<Table.Cell<R, C, V>> cellSet() {
Set<Table.Cell<R, C, V>> set = this.cellSet;
if (set != null) {
return set;
}
Set<Table.Cell<R, C, V>> createCellSet = createCellSet();
this.cellSet = createCellSet;
return createCellSet;
}
/* access modifiers changed from: package-private */
public Set<Table.Cell<R, C, V>> createCellSet() {
return new CellSet();
}
class CellSet extends AbstractSet<Table.Cell<R, C, V>> {
CellSet() {
}
public boolean contains(@CheckForNull Object obj) {
if (!(obj instanceof Table.Cell)) {
return false;
}
Table.Cell cell = (Table.Cell) obj;
Map map = (Map) Maps.safeGet(AbstractTable.this.rowMap(), cell.getRowKey());
if (map == null || !Collections2.safeContains(map.entrySet(), Maps.immutableEntry(cell.getColumnKey(), cell.getValue()))) {
return false;
}
return true;
}
public boolean remove(@CheckForNull Object obj) {
if (!(obj instanceof Table.Cell)) {
return false;
}
Table.Cell cell = (Table.Cell) obj;
Map map = (Map) Maps.safeGet(AbstractTable.this.rowMap(), cell.getRowKey());
if (map == null || !Collections2.safeRemove(map.entrySet(), Maps.immutableEntry(cell.getColumnKey(), cell.getValue()))) {
return false;
}
return true;
}
public void clear() {
AbstractTable.this.clear();
}
public Iterator<Table.Cell<R, C, V>> iterator() {
return AbstractTable.this.cellIterator();
}
public int size() {
return AbstractTable.this.size();
}
}
public Collection<V> values() {
Collection<V> collection = this.values;
if (collection != null) {
return collection;
}
Collection<V> createValues = createValues();
this.values = createValues;
return createValues;
}
/* access modifiers changed from: package-private */
public Collection<V> createValues() {
return new Values();
}
/* access modifiers changed from: package-private */
public Iterator<V> valuesIterator() {
return new TransformedIterator<Table.Cell<R, C, V>, V>(this, cellSet().iterator()) {
/* access modifiers changed from: package-private */
@ParametricNullness
public V transform(Table.Cell<R, C, V> cell) {
return cell.getValue();
}
};
}
class Values extends AbstractCollection<V> {
Values() {
}
public Iterator<V> iterator() {
return AbstractTable.this.valuesIterator();
}
public boolean contains(@CheckForNull Object obj) {
return AbstractTable.this.containsValue(obj);
}
public void clear() {
AbstractTable.this.clear();
}
public int size() {
return AbstractTable.this.size();
}
}
public boolean equals(@CheckForNull Object obj) {
return Tables.equalsImpl(this, obj);
}
public int hashCode() {
return cellSet().hashCode();
}
public String toString() {
return rowMap().toString();
}
}
Download file