Search Options

Results per page
Sort
Preferred Languages
Advance

Results 551 - 560 of 1,456 for created (0.05 sec)

  1. TreeBasedTableTest.java

    @Override L96: protected TreeBasedTable<String, Integer, Character> create(@Nullable Object... data) { L97: TreeBasedTable<String, Integer, Character> table = TreeBasedTable.create(); L98: table.put("foo", 4, 'a'); L99: table.put("cat", 1, 'b'); L100: table.clear(); L101: populate(table, data); L102: return table; L103: } L104: L105: public void testCreateExplicitComparators() { L106: table = TreeBasedTable.create(Collections.reverseOrder(), Ordering.usingToString()); L107: ...
    github.com/google/guava/guava-tests/test/com/go...
    Wed Oct 30 16:15:19 UTC 2024
      15K bytes
  2. TestStringMultisetGenerator.java

    rings; L23:import java.util.List; L24: L25:/** L26: * Create multisets of strings for tests. L27: * L28: * @author Jared Levy L29: */ L30:@GwtCompatible L31:@ElementTypesAreNonnullByDefault L32:public abstract class TestStringMultisetGenerator implements TestMultisetGenerator<String> { L33: @Override L34: public SampleElements<String> samples() { L35: return new Strings(); L36: } L37: L38: @Override L39: public Multiset<String> create(Object... elements) { L40: String[] array = new St...
    github.com/google/guava/android/guava-testlib/s...
    Wed Feb 21 16:49:06 UTC 2024
      1.7K bytes
  3. TestStringSortedSetGenerator.java

    java.util.List; L23:import java.util.SortedSet; L24: L25:/** L26: * Create string sets for testing collections that are sorted by natural ordering. L27: * L28: * @author Jared Levy L29: */ L30:@GwtCompatible L31:@ElementTypesAreNonnullByDefault L32:public abstract class TestStringSortedSetGenerator extends TestStringSetGenerator L33: implements TestSortedSetGenerator<String> { L34: L35: @Override L36: public SortedSet<String> create(Object... elements) { L37: return (SortedSet<String>) super.create(elements);...
    github.com/google/guava/android/guava-testlib/s...
    Wed Oct 30 16:15:19 UTC 2024
      1.7K bytes
  4. MultimapEqualsTester.java

    L46: .addEqualityGroup(multimap(), getSubjectGenerator().create(getSampleElements().toArray())) L47: .testEquals(); L48: } L49: L50: public void testEqualsFalse() { L51: List<Entry<K, V>> targetEntries = new ArrayList<>(getSampleElements()); L52: targetEntries.add(mapEntry(k0(), v3())); L53: new EqualsTester() L54: .addEqualityGroup(multimap()) L55: .addEqualityGroup(getSubjectGenerator().create(targetEntries.toArray())) L56: .testEquals(); L57: } L58:...
    github.com/google/guava/guava-testlib/src/com/g...
    Wed Oct 30 16:15:19 UTC 2024
      3.5K bytes
  5. TreeRangeSetTest.java

    testInvariantsEmpty() { L189: testInvariants(TreeRangeSet.create()); L190: } L191: L192: public void testEmptyIntersecting() { L193: testIntersects(TreeRangeSet.<Integer>create()); L194: testIntersects(TreeRangeSet.<Integer>create().complement()); L195: } L196: L197: public void testAllSingleRangesIntersecting() { L198: for (Range<Integer> range : QUERY_RANGES) { L199: TreeRangeSet<Integer> rangeSet = TreeRangeSet.create(); L200: rangeSet.add(range); L201: testIntersects(rangeSet);...
    github.com/google/guava/android/guava-tests/tes...
    Sat Oct 19 00:05:46 UTC 2024
      24.3K bytes
  6. ArrayListMultimapTest.java

    Multimap<String, Integer> original = HashMultimap.create(); L153: ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original); L154: assertEquals(3, multimap.expectedValuesPerKey); L155: } L156: L157: public void testCreateFromArrayListMultimap() { L158: ArrayListMultimap<String, Integer> original = ArrayListMultimap.create(15, 20); L159: ArrayListMultimap<String, Integer> multimap = ArrayListMultimap.create(original); L160: assertEquals(20, multimap.expectedValuesPerKey);...
    github.com/google/guava/android/guava-tests/tes...
    Tue Oct 15 17:36:06 UTC 2024
      6.5K bytes
  7. DerivedGoogleCollectionGenerators.java

    this.generator = oneSizeTestContainerGenerator; L55: } L56: L57: @Override L58: public SampleElements<Entry<K, V>> samples() { L59: return generator.samples(); L60: } L61: L62: @Override L63: public Map<K, V> create(Object... elements) { L64: return generator.create(elements); L65: } L66: L67: @Override L68: public Entry<K, V>[] createArray(int length) { L69: return generator.createArray(length); L70: } L71: L72: @Override L73: public Iterable<Entry<K, V>> order(List<Entry<K,...
    github.com/google/guava/guava-testlib/src/com/g...
    Wed Oct 30 16:15:19 UTC 2024
      6.8K bytes
  8. AbstractTableTest.java

    assertThrows(NullPointerException.class, () -> table.put("bar", 1, nullableCellValue(null))); L100: } L101: } L102: L103: public void testPutAllTable() { L104: table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); L105: Table<String, Integer, @NonNull C> other = HashBasedTable.create(); L106: other.put("foo", 1, cellValue('d')); L107: other.put("bar", 2, cellValue('e')); L108: other.put("cat", 2, cellValue('f')); L109: table.putAll(other); L110: assertEquals((Character)...
    github.com/google/guava/guava-tests/test/com/go...
    Tue Oct 15 17:36:06 UTC 2024
      5.8K bytes
  9. EnumHashBiMapTest.java

    it's an EnumHashBiMap. */ L156: Map<Currency, String> emptyBimap = EnumHashBiMap.create(Currency.class); L157: bimap = EnumHashBiMap.create(emptyBimap); L158: assertTrue(bimap.isEmpty()); L159: L160: /* Map can be empty if it's an EnumBiMap. */ L161: Map<Currency, Country> emptyBimap2 = EnumBiMap.create(Currency.class, Country.class); L162: EnumHashBiMap<Currency, Country> bimap2 = EnumHashBiMap.create(emptyBimap2); L163: assertTrue(bimap2.isEmpty()); L164: } L165: L166: public...
    github.com/google/guava/android/guava-tests/tes...
    Sat Oct 19 00:05:46 UTC 2024
      8.2K bytes
  10. FilteredMultimapTest.java

    apply(Entry<String, Integer> entry) { L40: return !"badkey".equals(entry.getKey()) && !((Integer) 55556).equals(entry.getValue()); L41: } L42: }; L43: L44: protected Multimap<String, Integer> create() { L45: Multimap<String, Integer> unfiltered = HashMultimap.create(); L46: unfiltered.put("foo", 55556); L47: unfiltered.put("badkey", 1); L48: return Multimaps.filterEntries(unfiltered, ENTRY_PREDICATE); L49: } L50: L51: private static final Predicate<String> KEY_PREDICATE...
    github.com/google/guava/android/guava-tests/tes...
    Wed Oct 30 16:15:19 UTC 2024
      3.4K bytes
Back to top