Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 192 for previous (0.27 sec)

  1. android/guava/src/com/google/common/collect/RegularContiguousSet.java

          final C first = first();
    
          @Override
          @CheckForNull
          protected C computeNext(C previous) {
            return equalsOrThrow(previous, first) ? null : domain.previous(previous);
          }
        };
      }
    
      private static boolean equalsOrThrow(Comparable<?> left, @CheckForNull Comparable<?> right) {
        return right != null && Range.compareOrThrow(left, right) == 0;
      }
    
      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

            }
          };
      Stimulus<E, ListIterator<E>> previous =
          new Stimulus<E, ListIterator<E>>("previous") {
            @Override
            void executeAndCompare(ListIterator<E> reference, ListIterator<E> target) {
              internalExecuteAndCompare(reference, target, PREVIOUS_METHOD);
            }
          };
      Stimulus<E, ListIterator<E>> add =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

          prev = x;
        }
      }
    
      /** getAndSet returns previous value and sets to given value */
      public void testGetAndSet() {
        double prev = Math.E;
        AtomicDouble at = new AtomicDouble(prev);
        for (double x : VALUES) {
          assertBitEquals(prev, at.getAndSet(x));
          prev = x;
        }
      }
    
      /** getAndAdd returns previous value and adds given value */
      public void testGetAndAdd() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 6.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/AbstractSequentialIterator.java

     * whose next element can always be derived from the previous element. Null elements are not
     * supported, nor is the {@link #remove()} method.
     *
     * <p>Example:
     *
     * <pre>{@code
     * Iterator<Integer> powersOfTwo =
     *     new AbstractSequentialIterator<Integer>(1) {
     *       protected Integer computeNext(Integer previous) {
     *         return (previous == 1 << 30) ? null : previous * 2;
     *       }
     *     };
     * }</pre>
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 2.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/LocalCache.java

        }
        return false;
      }
    
      // queues
    
      // Guarded By Segment.this
      static <K, V> void connectAccessOrder(ReferenceEntry<K, V> previous, ReferenceEntry<K, V> next) {
        previous.setNextInAccessQueue(next);
        next.setPreviousInAccessQueue(previous);
      }
    
      // Guarded By Segment.this
      static <K, V> void nullifyAccessOrder(ReferenceEntry<K, V> nulled) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/collection/SLinkedList.java

             */
            public Entry getPrevious() {
                if (previous != SLinkedList.this.header) {
                    return previous;
                }
                return null;
            }
    
            /**
             * 要素を削除します。
             */
            public void remove() {
                previous.next = next;
                next.previous = previous;
                --size;
            }
    
            /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11K bytes
    - Viewed (1)
  7. samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/ClientAndServer.java

     * cannot do TLS over domain sockets.
     */
    public class ClientAndServer {
      public void run() throws Exception {
        File socketFile = new File("/tmp/ClientAndServer.sock");
        socketFile.delete(); // Clean up from previous runs.
    
        MockWebServer server = new MockWebServer();
        server.setServerSocketFactory(new UnixDomainServerSocketFactory(socketFile));
        server.setProtocols(Collections.singletonList(Protocol.H2_PRIOR_KNOWLEDGE));
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Dec 24 03:46:30 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/math/BigDecimalMathTest.java

          this.input = input;
        }
    
        RoundToDoubleTester setExpectation(double expectedValue, RoundingMode... modes) {
          for (RoundingMode mode : modes) {
            Double previous = expectedValues.put(mode, expectedValue);
            if (previous != null) {
              throw new AssertionError();
            }
          }
          return this;
        }
    
        public RoundToDoubleTester roundUnnecessaryShouldThrow() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/AbstractSequentialIteratorTest.java

          protected @Nullable Integer computeNext(Integer previous) {
            return (previous == last) ? null : previous * 2;
          }
        };
      }
    
      private static class EmptyAbstractSequentialIterator<T> extends AbstractSequentialIterator<T> {
    
        public EmptyAbstractSequentialIterator() {
          super(null);
        }
    
        @Override
        protected T computeNext(T previous) {
          throw new AssertionFailedError();
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 17:19:08 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ClassToInstanceMap.java

      /**
       * Maps the specified class to the specified value. Does <i>not</i> associate this value with any
       * of the class's supertypes.
       *
       * @return the value previously associated with this class (possibly {@code null}), or {@code
       *     null} if there was no previous entry.
       */
      @CanIgnoreReturnValue
      @CheckForNull
      <T extends B> T putInstance(Class<@NonNull T> type, @ParametricNullness T value);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 3K bytes
    - Viewed (0)
Back to top