- Sort Score
- Result 10 results
- Languages All
Results 661 - 670 of 1,456 for created (0.15 sec)
-
TestStringQueueGenerator.java
java.util.List; L22:import java.util.Queue; L23: L24:/** L25: * Create queue of strings for tests. L26: * L27: * @author Jared Levy L28: */ L29:@GwtCompatible L30:@ElementTypesAreNonnullByDefault L31:public abstract class TestStringQueueGenerator implements TestQueueGenerator<String> { L32: @Override L33: public SampleElements<String> samples() { L34: return new Strings(); L35: } L36: L37: @Override L38: public Queue<String> create(Object... elements) { L39: String[] array = new String[elements.length];...github.com/google/guava/android/guava-testlib/s...Wed Feb 21 16:49:06 UTC 2024 1.6K bytes -
TrustedListenableFutureTaskTest.java
TrustedListenableFutureTask<Integer> task = TrustedListenableFutureTask.create(returning(2)); L47: assertFalse(task.isDone()); L48: task.run(); L49: assertTrue(task.isDone()); L50: assertFalse(task.isCancelled()); L51: assertEquals(2, getDone(task).intValue()); L52: } L53: L54: public void testCancelled() throws Exception { L55: TrustedListenableFutureTask<Integer> task = TrustedListenableFutureTask.create(returning(2)); L56: assertFalse(task.isDone()); L57: task.cancel(false);...github.com/google/guava/guava-tests/test/com/go...Mon Oct 21 15:41:36 UTC 2024 7.3K bytes -
ExecutionError.java
ExecutionError(@CheckForNull String message) { L68: super(message); L69: } L70: L71: /** L72: * Creates a new instance with the given detail message and cause. Prefer to provide a L73: * non-nullable {@code cause}, as many users expect to find one. L74: */ L75: public ExecutionError(@CheckForNull String message, @CheckForNull Error cause) { L76: super(message, cause); L77: } L78: L79: /** L80: * Creates a new instance with {@code null} as its detail message and the given cause. Prefer to L81:...github.com/google/guava/guava/src/com/google/co...Thu Mar 07 17:52:19 UTC 2024 3.8K bytes -
Optional.java
Optional.empty}. L94: */ L95: public static <T> Optional<T> absent() { L96: return Absent.withType(); L97: } L98: L99: /** L100: * Returns an {@code Optional} instance containing the given non-null reference. To have {@code L101: * null} treated as {@link #absent}, use {@link #fromNullable} instead. L102: * L103: * <p><b>Comparison to {@code java.util.Optional}:</b> no differences. L104: * L105: * @throws NullPointerException if {@code reference} is null L106: */ L107: public static...github.com/google/guava/android/guava/src/com/g...Thu Oct 31 14:20:11 UTC 2024 15.4K bytes -
upgrading_to_okhttp_4.md
MediaType.parse(String) | String.toMediaTypeOrNull() | L133:| RequestBody.create(ByteArray) | ByteArray.toRequestBody() | L134:| RequestBody.create(ByteString) | ByteString.toRequestBody() | L135:| RequestBody.create(File) | File.asRequestBody() | L136:| RequestBody.create(String) | String.toRequestBody() | L137:| ResponseBody.create(BufferedSource) | BufferedSource.asResponseBody() | L138:| ResponseBody.create(ByteArray)...github.com/square/okhttp/docs/changelogs/upgrad...Sun Feb 06 16:58:16 UTC 2022 10.9K bytes -
ArrayBasedEscaperMapTest.java
class ArrayBasedEscaperMapTest extends TestCase { L29: public void testNullMap() { L30: assertThrows(NullPointerException.class, () -> ArrayBasedEscaperMap.create(null)); L31: } L32: L33: public void testEmptyMap() { L34: Map<Character, String> map = ImmutableMap.of(); L35: ArrayBasedEscaperMap fem = ArrayBasedEscaperMap.create(map); L36: // Non-null array of zero length. L37: assertEquals(0, fem.getReplacementArray().length); L38: } L39: L40: public void testMapLength() { L41:...github.com/google/guava/android/guava-tests/tes...Fri Oct 18 15:00:32 UTC 2024 2.5K bytes -
TestIntegerSetGenerator.java
java.util.List; L22:import java.util.Set; L23: L24:/** L25: * Create integer sets for collection tests. L26: * L27: * @author Gregory Kick L28: */ L29:@GwtCompatible L30:@ElementTypesAreNonnullByDefault L31:public abstract class TestIntegerSetGenerator implements TestSetGenerator<Integer> { L32: @Override L33: public SampleElements<Integer> samples() { L34: return new Ints(); L35: } L36: L37: @Override L38: public Set<Integer> create(Object... elements) { L39: Integer[] array = new Integer[elements.length];...github.com/google/guava/android/guava-testlib/s...Wed Feb 21 16:49:06 UTC 2024 2.1K bytes -
BsBoostDocumentRuleCQ.java
createdBy, ConditionOptionCall<TermQueryBuilder> opLambda) { L428: TermQueryBuilder builder = regTermQ("createdBy", createdBy); L429: if (opLambda != null) { L430: opLambda.callback(builder); L431: } L432: } L433: L434: public void setCreatedBy_NotEqual(String createdBy) { L435: setCreatedBy_NotTerm(createdBy, null); L436: } L437: L438: public void setCreatedBy_NotTerm(String createdBy) { L439: setCreatedBy_NotTerm(createdBy, null); L440:...github.com/codelibs/fess/src/main/java/org/code...Thu Feb 22 01:37:57 UTC 2024 56.7K bytes -
SortedMapGenerators.java
L44:@GwtCompatible L45:@ElementTypesAreNonnullByDefault L46:public class SortedMapGenerators { L47: public static class ImmutableSortedMapGenerator extends TestStringSortedMapGenerator { L48: @Override L49: public SortedMap<String, String> create(Entry<String, String>[] entries) { L50: ImmutableSortedMap.Builder<String, String> builder = ImmutableSortedMap.naturalOrder(); L51: for (Entry<String, String> entry : entries) { L52: checkNotNull(entry); L53: builder.put(entry.getKey(),...github.com/google/guava/guava-testlib/src/com/g...Sat Oct 19 00:05:46 UTC 2024 4.6K bytes -
ConcurrentNavigableMapTestSuiteBuilder.java
L15: */ L16: L17:package com.google.common.collect.testing; L18: L19:import static com.google.common.collect.testing.Helpers.copyToList; L20: L21:import com.google.common.annotations.GwtIncompatible; L22:import java.util.List; L23: L24:/** L25: * Creates, based on your criteria, a JUnit test suite that exhaustively tests a L26: * ConcurrentNavigableMap implementation. L27: * L28: * @author Louis Wasserman L29: */ L30:@GwtIncompatible L31:public class ConcurrentNavigableMapTestSuiteBuilder<K, V> L32:...github.com/google/guava/android/guava-testlib/s...Wed Oct 30 16:15:19 UTC 2024 1.8K bytes