Search Options

Results per page
Sort
Preferred Languages
Advance

Results 601 - 610 of 681 for delete (0.06 sec)

  1. StringsTest.java

    Strings.padEnd("x", -1, '-')); L97: } L98: L99: public void testPadEnd_null() { L100: assertThrows(NullPointerException.class, () -> Strings.padEnd(null, 5, '0')); L101: } L102: L103: @SuppressWarnings("InlineMeInliner") // test of method that doesn't just delegate L104: public void testRepeat() { L105: String input = "20"; L106: assertEquals("", Strings.repeat(input, 0)); L107: assertEquals("20", Strings.repeat(input, 1)); L108: assertEquals("2020", Strings.repeat(input, 2)); L109: assertEquals("202020",...
    github.com/google/guava/guava-tests/test/com/go...
    Tue Sep 17 18:14:12 UTC 2024
      10.4K bytes
  2. Http1ExchangeCodec.kt

    carrier.noNewExchanges() L252: return UnknownLengthSource() L253: } L254: L255: /** L256: * Sets the delegate of `timeout` to [Timeout.NONE] and resets its underlying timeout L257: * to the default configuration. Use this to avoid unexpected sharing of timeouts between pooled L258: * connections. L259: */ L260: private fun detachTimeout(timeout: ForwardingTimeout) { L261: val oldDelegate = timeout.delegate L262: timeout.setDelegate(Timeout.NONE) L263: oldDelegate.clearDeadline() L264: o...
    github.com/square/okhttp/okhttp/src/main/kotlin...
    Mon Jan 08 01:13:22 UTC 2024
      16.2K bytes
  3. SuppliersTest.java

    L165: L166: Supplier<Integer> copy = reserialize(memoizedSupplier); L167: Object unused2 = memoizedSupplier.get(); L168: L169: CountingSupplier countingCopy = L170: (CountingSupplier) ((Suppliers.MemoizingSupplier<Integer>) copy).delegate; L171: checkMemoize(countingCopy, copy); L172: } L173: L174: public void testCompose() { L175: Supplier<Integer> fiveSupplier = L176: new Supplier<Integer>() { L177: @Override L178: public Integer get() { L179: ...
    github.com/google/guava/android/guava-tests/tes...
    Sat Oct 19 00:26:48 UTC 2024
      17.9K bytes
  4. SuppliersTest.java

    L165: L166: Supplier<Integer> copy = reserialize(memoizedSupplier); L167: Object unused2 = memoizedSupplier.get(); L168: L169: CountingSupplier countingCopy = L170: (CountingSupplier) ((Suppliers.MemoizingSupplier<Integer>) copy).delegate; L171: checkMemoize(countingCopy, copy); L172: } L173: L174: public void testCompose() { L175: Supplier<Integer> fiveSupplier = L176: new Supplier<Integer>() { L177: @Override L178: public Integer get() { L179: ...
    github.com/google/guava/guava-tests/test/com/go...
    Sat Oct 19 00:26:48 UTC 2024
      17.9K bytes
  5. HashingOutputStream.java

    HashCode hash() { L67: return hasher.hash(); L68: } L69: L70: // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior: L71: // it silently ignores any exception thrown by flush(). Instead, just close the delegate stream. L72: // It should flush itself if necessary. L73: @Override L74: public void close() throws IOException { L75: out.close(); L76: } L77:}...
    github.com/google/guava/android/guava/src/com/g...
    Fri Oct 11 22:00:03 UTC 2024
      2.6K bytes
  6. DescendingMultiset.java

    L86: @Override L87: public SortedMultiset<E> tailMultiset(E fromElement, BoundType boundType) { L88: return forwardMultiset().headMultiset(fromElement, boundType).descendingMultiset(); L89: } L90: L91: @Override L92: protected Multiset<E> delegate() { L93: return forwardMultiset(); L94: } L95: L96: @Override L97: public SortedMultiset<E> descendingMultiset() { L98: return forwardMultiset(); L99: } L100: L101: @Override L102: @CheckForNull L103: public Entry<E> firstEntry() { L104:...
    github.com/google/guava/guava-gwt/src-super/com...
    Wed Jan 24 16:03:45 UTC 2024
      4.2K bytes
  7. Helpers.java

    values. This is useful for testing methods that must treat the return value from L356: * size() as a hint only. L357: * L358: * @param delta the difference between the true size of the collection and the values returned by L359: * the size method L360: */ L361: public static <T extends @Nullable Object> Collection<T> misleadingSizeCollection(int delta) { L362: // It would be nice to be able to return a real concurrent L363: // collection like ConcurrentLinkedQueue, so that e.g. concurrent...
    github.com/google/guava/android/guava-testlib/s...
    Wed Oct 30 16:15:19 UTC 2024
      17.5K bytes
  8. DescendingMultiset.java

    public SortedMultiset<E> tailMultiset(@ParametricNullness E fromElement, BoundType boundType) { L93: return forwardMultiset().headMultiset(fromElement, boundType).descendingMultiset(); L94: } L95: L96: @Override L97: protected Multiset<E> delegate() { L98: return forwardMultiset(); L99: } L100: L101: @Override L102: public SortedMultiset<E> descendingMultiset() { L103: return forwardMultiset(); L104: } L105: L106: @Override L107: @CheckForNull L108: public Entry<E> firstEntry()...
    github.com/google/guava/android/guava/src/com/g...
    Mon Jun 26 21:02:13 UTC 2023
      4.5K bytes
  9. TestValueFactory.kt

    { L210: val call = RealCall(client, Request(address.url), forWebSocket = false) L211: val chain = newChain(call) L212: return RealRoutePlanner( L213: taskRunner = client.taskRunner, L214: connectionPool = client.connectionPool.delegate, L215: readTimeoutMillis = client.readTimeoutMillis, L216: writeTimeoutMillis = client.writeTimeoutMillis, L217: socketConnectTimeoutMillis = chain.connectTimeoutMillis, L218: socketReadTimeoutMillis = chain.readTimeoutMillis,...
    github.com/square/okhttp/okhttp-testing-support...
    Sat Apr 20 17:03:43 UTC 2024
      7.7K bytes
  10. MinMaxPriorityQueueBenchmark.java

    L82: MinMaxPriorityQueue<T> mmHeap; L83: L84: public InvertedMinMaxPriorityQueue(Comparator<T> comparator) { L85: mmHeap = MinMaxPriorityQueue.orderedBy(comparator).create(); L86: } L87: L88: @Override L89: protected Queue<T> delegate() { L90: return mmHeap; L91: } L92: L93: @Override L94: public @Nullable T poll() { L95: return mmHeap.pollLast(); L96: } L97: } L98: L99: public enum HeapType { L100: MIN_MAX { L101: @Override L102: public Queue<Integer>...
    github.com/google/guava/android/guava-tests/ben...
    Wed Apr 19 19:24:36 UTC 2023
      4.3K bytes
Back to top