- Sort Score
- Result 10 results
- Languages All
Results 491 - 500 of 1,434 for created (0.04 sec)
-
ByteSource.java
{ L209: return sizeIfKnown.get(); L210: } L211: L212: Closer closer = Closer.create(); L213: try { L214: InputStream in = closer.register(openStream()); L215: return countBySkipping(in); L216: } catch (IOException e) { L217: // skip may not be supported... at any rate, try reading L218: } finally { L219: closer.close(); L220: } L221: L222: closer = Closer.create(); L223: try { L224: InputStream in = closer.register(openStream()); L225: return...github.com/google/guava/android/guava/src/com/g...Sat Oct 19 00:26:48 UTC 2024 26.2K bytes -
MultisetIteratorBenchmark.java
hashMultiset; L38: L39: // TreeMultiset requires a Comparable element. L40: TreeMultiset<Integer> treeMultiset; L41: L42: @BeforeExperiment L43: void setUp() { L44: hashMultiset = HashMultiset.create(size); L45: linkedHashMultiset = LinkedHashMultiset.create(size); L46: treeMultiset = TreeMultiset.create(); L47: L48: Random random = new Random(); L49: L50: int sizeRemaining = size; L51: L52: // TODO(kevinb): generate better test contents for multisets L53: while (sizeRemaining > 0)...github.com/google/guava/android/guava-tests/ben...Fri Oct 18 20:24:49 UTC 2024 2.7K bytes -
ListRetainAllTester.java
@CollectionFeature.Require(SUPPORTS_REMOVE) L43: @CollectionSize.Require(absent = {ZERO, ONE}) L44: public void testRetainAll_duplicatesKept() { L45: E[] array = createSamplesArray(); L46: array[1] = e0(); L47: collection = getSubjectGenerator().create(array); L48: assertFalse( L49: "containsDuplicates.retainAll(superset) should return false", L50: collection.retainAll(MinimalCollection.of(createSamplesArray()))); L51: expectContents(array); L52: } L53: L54: @CollectionFea...github.com/google/guava/android/guava-testlib/s...Sat Oct 19 00:05:46 UTC 2024 2.9K bytes -
MultisetIteratorBenchmark.java
hashMultiset; L38: L39: // TreeMultiset requires a Comparable element. L40: TreeMultiset<Integer> treeMultiset; L41: L42: @BeforeExperiment L43: void setUp() { L44: hashMultiset = HashMultiset.create(size); L45: linkedHashMultiset = LinkedHashMultiset.create(size); L46: treeMultiset = TreeMultiset.create(); L47: L48: Random random = new Random(); L49: L50: int sizeRemaining = size; L51: L52: // TODO(kevinb): generate better test contents for multisets L53: while (sizeRemaining > 0)...github.com/google/guava/guava-tests/benchmark/c...Fri Oct 18 20:24:49 UTC 2024 2.7K bytes -
EnumBiMapTest.java
IllegalArgumentException.class, L161: () -> EnumBiMap.create(EnumHashBiMap.<Currency, Country>create(Currency.class))); L162: L163: /* Map can be empty if it's an EnumBiMap. */ L164: Map<Currency, Country> emptyBimap = EnumBiMap.create(Currency.class, Country.class); L165: bimap = EnumBiMap.create(emptyBimap); L166: assertTrue(bimap.isEmpty()); L167: } L168: L169: public void testEnumBiMapConstructor() { L170: /* Test that it copies existing entries. */ L171: EnumBiMap<Currency,...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 11.8K bytes -
ImmutableBiMapFloodingTest.java
log(n), L48: ImmutableList.of( L49: QueryOp.create("BiMap.get", BiMap::get, Math::log), L50: QueryOp.create("BiMap.inverse.get", (bm, o) -> bm.inverse().get(o), Math::log))); L51: } L52: L53: /** All the ways to create an ImmutableBiMap. */ L54: enum ConstructionPathway { L55: COPY_OF_MAP { L56: @Override L57: public ImmutableBiMap<Object, Object> create(List<Entry<?, ?>> entries) { L58: Map<Object, Object> sourceMap = new LinkedHashMap<>(); L59: ...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 4.2K bytes -
LinkedListMultimapTest.java
suite.addTestSuite(LinkedListMultimapTest.class); L93: return suite; L94: } L95: L96: protected LinkedListMultimap<String, Integer> create() { L97: return LinkedListMultimap.create(); L98: } L99: L100: /** Confirm that get() returns a List that doesn't implement RandomAccess. */ L101: public void testGetRandomAccess() { L102: Multimap<String, Integer> multimap = create(); L103: multimap.put("foo", 1); L104: multimap.put("foo", 3); L105: assertFalse(multimap.get("foo") instanceof RandomAccess);...github.com/google/guava/android/guava-tests/tes...Wed Oct 30 16:15:19 UTC 2024 18K bytes -
ImmutableSortedMultisetTest.java
testCopyOf_multiset_empty() { L225: Multiset<String> c = HashMultiset.create(); L226: Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); L227: assertTrue(multiset.isEmpty()); L228: } L229: L230: public void testCopyOf_multiset_oneElement() { L231: Multiset<String> c = HashMultiset.create(asList("a")); L232: Multiset<String> multiset = ImmutableSortedMultiset.copyOf(c); L233: assertEquals(HashMultiset.create(asList("a")), multiset); L234: } L235: L236: public void testCo...github.com/google/guava/guava-tests/test/com/go...Wed Oct 30 16:15:19 UTC 2024 22.7K bytes -
AdminRoleAction.java
L160: // Actually Crud L161: // ------------- L162: @Execute L163: @Secured({ ROLE }) L164: public HtmlResponse create(final CreateForm form) { L165: verifyCrudMode(form.crudMode, CrudMode.CREATE); L166: validate(form, messages -> {}, this::asEditHtml); L167: verifyToken(this::asEditHtml); L168: getRole(form).ifPresent(entity -> { L169: try { L170: ro...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:53:18 UTC 2024 10.8K bytes -
BsRelatedQueryCQ.java
createdBy, ConditionOptionCall<TermQueryBuilder> opLambda) { L203: TermQueryBuilder builder = regTermQ("createdBy", createdBy); L204: if (opLambda != null) { L205: opLambda.callback(builder); L206: } L207: } L208: L209: public void setCreatedBy_NotEqual(String createdBy) { L210: setCreatedBy_NotTerm(createdBy, null); L211: } L212: L213: public void setCreatedBy_NotTerm(String createdBy) { L214: setCreatedBy_NotTerm(createdBy, null); L215:...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 57.5K bytes