/external/guava/guava/src/com/google/common/collect/ |
D | TreeBasedTable.java | 70 private final Comparator<? super C> columnComparator; field in TreeBasedTable 106 Comparator<? super R> rowComparator, Comparator<? super C> columnComparator) { in create() argument 108 checkNotNull(columnComparator); in create() 109 return new TreeBasedTable<>(rowComparator, columnComparator); in create() 118 new TreeBasedTable<>(table.rowComparator(), table.columnComparator()); in create() 123 TreeBasedTable(Comparator<? super R> rowComparator, Comparator<? super C> columnComparator) { in TreeBasedTable() argument 124 super(new TreeMap<R, Map<C, V>>(rowComparator), new Factory<C, V>(columnComparator)); in TreeBasedTable() 125 this.columnComparator = columnComparator; in TreeBasedTable() 150 public Comparator<? super C> columnComparator() { in columnComparator() method in TreeBasedTable 151 return columnComparator; in columnComparator() [all …]
|
D | RegularImmutableTable.java | 101 final @Nullable Comparator<? super C> columnComparator) { in forCells() argument 103 if (rowComparator != null || columnComparator != null) { in forCells() 122 return (columnComparator == null) in forCells() 124 : columnComparator.compare(cell1.getColumnKey(), cell2.getColumnKey()); in forCells() 129 return forCellsInternal(cells, rowComparator, columnComparator); in forCells() 139 @Nullable Comparator<? super C> columnComparator) { in forCellsInternal() argument 153 (columnComparator == null) in forCellsInternal() 155 : ImmutableSet.copyOf(ImmutableList.sortedCopyOf(columnComparator, columnSpaceBuilder)); in forCellsInternal()
|
D | ImmutableTable.java | 271 private @Nullable Comparator<? super C> columnComparator; field in ImmutableTable.Builder 288 public Builder<R, C, V> orderColumnsBy(Comparator<? super C> columnComparator) { in orderColumnsBy() argument 289 this.columnComparator = checkNotNull(columnComparator, "columnComparator"); in orderColumnsBy() 354 return RegularImmutableTable.forCells(cells, rowComparator, columnComparator); in build()
|
/external/guava/android/guava/src/com/google/common/collect/ |
D | TreeBasedTable.java | 70 private final Comparator<? super C> columnComparator; field in TreeBasedTable 106 Comparator<? super R> rowComparator, Comparator<? super C> columnComparator) { in create() argument 108 checkNotNull(columnComparator); in create() 109 return new TreeBasedTable<>(rowComparator, columnComparator); in create() 118 new TreeBasedTable<>(table.rowComparator(), table.columnComparator()); in create() 123 TreeBasedTable(Comparator<? super R> rowComparator, Comparator<? super C> columnComparator) { in TreeBasedTable() argument 124 super(new TreeMap<R, Map<C, V>>(rowComparator), new Factory<C, V>(columnComparator)); in TreeBasedTable() 125 this.columnComparator = columnComparator; in TreeBasedTable() 150 public Comparator<? super C> columnComparator() { in columnComparator() method in TreeBasedTable 151 return columnComparator; in columnComparator() [all …]
|
D | RegularImmutableTable.java | 101 @NullableDecl final Comparator<? super C> columnComparator) { in forCells() argument 103 if (rowComparator != null || columnComparator != null) { in forCells() 122 return (columnComparator == null) in forCells() 124 : columnComparator.compare(cell1.getColumnKey(), cell2.getColumnKey()); in forCells() 129 return forCellsInternal(cells, rowComparator, columnComparator); in forCells() 139 @NullableDecl Comparator<? super C> columnComparator) { in forCellsInternal() argument 153 (columnComparator == null) in forCellsInternal() 155 : ImmutableSet.copyOf(ImmutableList.sortedCopyOf(columnComparator, columnSpaceBuilder)); in forCellsInternal()
|
D | ImmutableTable.java | 138 @NullableDecl private Comparator<? super C> columnComparator; field in ImmutableTable.Builder 155 public Builder<R, C, V> orderColumnsBy(Comparator<? super C> columnComparator) { in orderColumnsBy() argument 156 this.columnComparator = checkNotNull(columnComparator, "columnComparator"); in orderColumnsBy() 216 return RegularImmutableTable.forCells(cells, rowComparator, columnComparator); in build()
|
/external/guava/android/guava-tests/test/com/google/common/collect/ |
D | TreeBasedTableTest.java | 132 Comparator<? super Integer> columnComparator, in create() argument 135 TreeBasedTable.create(rowComparator, columnComparator); in create() 214 assertSame(Ordering.natural(), sortedTable.columnComparator()); in testColumnComparator() 222 assertSame(Ordering.usingToString(), sortedTable.columnComparator()); in testColumnComparator()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | TreeBasedTableTest.java | 132 Comparator<? super Integer> columnComparator, in create() argument 135 TreeBasedTable.create(rowComparator, columnComparator); in create() 214 assertSame(Ordering.natural(), sortedTable.columnComparator()); in testColumnComparator() 222 assertSame(Ordering.usingToString(), sortedTable.columnComparator()); in testColumnComparator()
|