- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 463 for iterables (0.2 sec)
-
android/guava/src/com/google/common/collect/TopKSelector.java
* create the {@code TopKSelector} instance. * * <p>If your input data is available as an {@link Iterable} or {@link Iterator}, prefer {@link * Ordering#leastOf(Iterable, int)}, which provides the same implementation with an interface * tailored to that use case. * * <p>This uses the same efficient implementation as {@link Ordering#leastOf(Iterable, int)}, * offering expected O(n + k log k) performance (worst case O(n log k)) for n calls to {@link
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 11.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/ReflectionTest.java
public class ReflectionTest extends TestCase { public void testGetPackageName() throws Exception { assertEquals("java.lang", Reflection.getPackageName(Iterable.class)); assertEquals("java", Reflection.getPackageName("java.MyType")); assertEquals("java.lang", Reflection.getPackageName(Iterable.class.getName())); assertEquals("", Reflection.getPackageName("NoPackage")); assertEquals("java.util", Reflection.getPackageName(Map.Entry.class));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 2.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/PredicatesTest.java
final List<Predicate<Object>> list = newArrayList(); Iterable<Predicate<Object>> iterable = new Iterable<Predicate<Object>>() { @Override public Iterator<Predicate<Object>> iterator() { return list.iterator(); } }; Predicate<Object> predicate = Predicates.and(iterable); assertTrue(predicate.apply(1)); list.add(Predicates.alwaysFalse());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 32.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/LegacyComparable.java
static final LegacyComparable Y = new LegacyComparable("y"); static final LegacyComparable Z = new LegacyComparable("z"); static final Iterable<LegacyComparable> VALUES_FORWARD = asList(X, Y, Z); static final Iterable<LegacyComparable> VALUES_BACKWARD = asList(Z, Y, X); private final String value; LegacyComparable(String value) { this.value = value; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 2.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java
* either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ package org.codelibs.core.lang; import static org.codelibs.core.lang.ClassLoaderIterator.iterable; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.io.IOException; import java.lang.reflect.Method;
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java
} @Override public E[] createArray(int length) { return gen.createArray(length); } @Override public Iterable<E> order(List<E> insertionOrder) { return gen.order(insertionOrder); } } private static Set<Feature<?>> computeReserializedCollectionFeatures(Set<Feature<?>> features) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/IndexedIteratorTest.java
package org.codelibs.core.collection; import static org.codelibs.core.collection.CollectionsUtil.newArrayList; import static org.codelibs.core.collection.IndexedIterator.indexed; import static org.codelibs.core.io.LineIterator.iterable; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.not; import static org.junit.Assert.assertThat; import java.io.StringReader; import java.util.List; import org.junit.Test;
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java
assertThrows( IllegalArgumentException.class, () -> map.putInstance(this.<Integer>anyIterableType(), ImmutableList.of(1))); } private <T> TypeToken<Iterable<T>> anyIterableType() { return new TypeToken<Iterable<T>>() {}; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 7.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.java
} @Override public SampleElements<String> sampleValues() { return new SampleElements<>("January", "February", "March", "April", "May"); } @Override public Collection<String> createCollection(Iterable<? extends String> values) { return copyToSet(values); } @Override public final SetMultimap<String, String> create(Object... entries) { @SuppressWarnings("unchecked")
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3K bytes - Viewed (0) -
guava/src/com/google/common/cache/AbstractLoadingCache.java
* {@code get}; {@link #getAllPresent} is implemented in terms of {@code getIfPresent}; {@link * #putAll} is implemented in terms of {@link #put}, {@link #invalidateAll(Iterable)} is implemented * in terms of {@link #invalidate}. The method {@link #cleanUp} is a no-op. All other methods throw * an {@link UnsupportedOperationException}. * * @author Charles Fry * @since 11.0 */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Aug 06 17:12:03 UTC 2022 - 2.7K bytes - Viewed (0)