- Sort Score
- Result 10 results
- Languages All
Results 561 - 570 of 1,456 for created (0.04 sec)
-
ImmutableListMultimapTest.java
assertEquals(7, multimap.size()); L198: } L199: L200: public void testBuilderPutAllMultimap() { L201: Multimap<String, Integer> toPut = LinkedListMultimap.create(); L202: toPut.put("foo", 1); L203: toPut.put("bar", 4); L204: toPut.put("foo", 2); L205: toPut.put("foo", 3); L206: Multimap<String, Integer> moreToPut = LinkedListMultimap.create(); L207: moreToPut.put("foo", 6); L208: moreToPut.put("bar", 5); L209: moreToPut.put("foo", 7); L210: ImmutableListMultimap.Builder<String,...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 25.4K bytes -
TableCollectionTest.java
Character> createTable() { L510: return unmodifiableTable(HashBasedTable.<String, Integer, Character>create()); L511: } L512: L513: @Override L514: public Set<Cell<String, Integer, Character>> create(Object... elements) { L515: Table<String, Integer, Character> table = HashBasedTable.create(); L516: for (Object element : elements) { L517: @SuppressWarnings("unchecked")...github.com/google/guava/android/guava-tests/tes...Wed Oct 30 16:15:19 UTC 2024 35.2K bytes -
TableCollectionTest.java
Character> createTable() { L510: return unmodifiableTable(HashBasedTable.<String, Integer, Character>create()); L511: } L512: L513: @Override L514: public Set<Cell<String, Integer, Character>> create(Object... elements) { L515: Table<String, Integer, Character> table = HashBasedTable.create(); L516: for (Object element : elements) { L517: @SuppressWarnings("unchecked")...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 35.2K bytes -
SynchronizedQueueTest.java
ckReturnValue") L157: public void testHoldsLockOnAllOperations() { L158: create().element(); L159: create().offer("foo"); L160: create().peek(); L161: create().poll(); L162: create().remove(); L163: create().add("foo"); L164: create().addAll(ImmutableList.of("foo")); L165: create().clear(); L166: create().contains("foo"); L167: create().containsAll(ImmutableList.of("foo")); L168: create().equals(new ArrayDeque<>(ImmutableList.of("foo"))); L169: create().hashCode();...github.com/google/guava/guava-tests/test/com/go...Mon Aug 19 20:50:58 UTC 2024 4.7K bytes -
AdminBadwordAction.java
L238: // Actually Crud L239: // ------------- L240: @Execute L241: @Secured({ ROLE }) L242: public HtmlResponse create(final CreateForm form) { L243: verifyCrudMode(form.crudMode, CrudMode.CREATE); L244: validate(form, messages -> {}, this::asEditHtml); L245: verifyToken(this::asEditHtml); L246: getBadWord(form).ifPresent(entity -> { L247: try { L248: ...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 16.2K bytes -
ImmutableMultisetTest.java
testCopyOf_multiset_empty() { L266: Multiset<String> c = HashMultiset.create(); L267: Multiset<String> multiset = ImmutableMultiset.copyOf(c); L268: assertTrue(multiset.isEmpty()); L269: } L270: L271: public void testCopyOf_multiset_oneElement() { L272: Multiset<String> c = HashMultiset.create(asList("a")); L273: Multiset<String> multiset = ImmutableMultiset.copyOf(c); L274: assertEquals(HashMultiset.create(asList("a")), multiset); L275: } L276: L277: public void testCopyOf_multiset_general()...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 24.9K bytes -
SetGenerators.java
AbstractContiguousSetGenerator { L377: @Override L378: protected SortedSet<Integer> create(Integer[] elements) { L379: SortedSet<Integer> set = nullCheckedTreeSet(elements); L380: if (set.isEmpty()) { L381: /* L382: * The (tooLow + 1, tooHigh) arguments below would be invalid because tooLow would be L383: * greater than tooHigh. L384: */ L385: return ContiguousSet.create(Range.openClosed(0, 1), DiscreteDomain.integers()).subSet(0, 1); L386: } L387:...github.com/google/guava/guava-testlib/src/com/g...Wed Oct 30 16:15:19 UTC 2024 15.6K bytes -
SynchronizedMapTest.java
correctly. L160: */ L161: L162: public void testSize() { L163: int unused = create().size(); L164: } L165: L166: public void testIsEmpty() { L167: boolean unused = create().isEmpty(); L168: } L169: L170: public void testRemove() { L171: create().remove(null); L172: } L173: L174: public void testClear() { L175: create().clear(); L176: } L177: L178: public void testContainsKey() { L179: boolean unused = create().containsKey(null); L180: } L181: L182: public void testContainsValue()...github.com/google/guava/android/guava-tests/tes...Tue Aug 06 17:23:04 UTC 2024 5.8K bytes -
EnumMultisetTest.java
private static TestEnumMultisetGenerator enumMultisetGenerator() { L71: return new TestEnumMultisetGenerator() { L72: @Override L73: protected Multiset<AnEnum> create(AnEnum[] elements) { L74: return (elements.length == 0) L75: ? EnumMultiset.create(AnEnum.class) L76: : EnumMultiset.create(asList(elements)); L77: } L78: }; L79: } L80: L81: private enum Color { L82: BLUE, L83: RED, L84: YELLOW, L85: GREEN, L86: WHITE L87: } L88: L89:...github.com/google/guava/guava-tests/test/com/go...Tue Oct 15 17:36:06 UTC 2024 5.9K bytes -
SettableFutureTest.java
throws Exception { L109: SettableFuture<String> future = SettableFuture.create(); L110: SettableFuture<String> nested = SettableFuture.create(); L111: assertTrue(future.setFuture(nested)); L112: // Later attempts to set the future should return false. L113: assertFalse(future.set("x")); L114: assertFalse(future.setException(new Exception("bar"))); L115: assertFalse(future.setFuture(SettableFuture.<String>create())); L116: // Check that the future has been set properly. L117: ...github.com/google/guava/guava-tests/test/com/go...Fri Oct 18 22:10:29 UTC 2024 7.3K bytes