Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for dine (0.14 sec)

  1. guava/src/com/google/common/collect/Cut.java

    import javax.annotation.CheckForNull;
    
    /**
     * Implementation detail for the internal structure of {@link Range} instances. Represents a unique
     * way of "cutting" a "number line" (actually of instances of type {@code C}, not necessarily
     * "numbers") into two sections; this can be done below a certain value, above a certain value,
     * below all values or above all values. With this object defined in this way, an interval can
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

        return new TrackedRunnable() {
          private volatile boolean done = false;
    
          @Override
          public boolean isDone() {
            return done;
          }
    
          @Override
          public void run() {
            try {
              delay(timeoutMillis);
              done = true;
            } catch (InterruptedException ok) {
            }
          }
        };
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        try {
          builder.add((String) null);
          fail("expected NullPointerException"); // COV_NF_LINE
        } catch (NullPointerException expected) {
        }
    
        builder = this.<String>builder();
        try {
          builder.add((String[]) null);
          fail("expected NullPointerException"); // COV_NF_LINE
        } catch (NullPointerException expected) {
        }
    
        builder = this.<String>builder();
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        try {
          builder.add((String) null);
          fail("expected NullPointerException"); // COV_NF_LINE
        } catch (NullPointerException expected) {
        }
    
        builder = this.<String>builder();
        try {
          builder.add((String[]) null);
          fail("expected NullPointerException"); // COV_NF_LINE
        } catch (NullPointerException expected) {
        }
    
        builder = this.<String>builder();
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java

          return;
        }
        keyToRemove = map.keySet().iterator().next();
        if (supportsRemove) {
          int initialSize = map.size();
          map.get(keyToRemove);
          map.remove(keyToRemove);
          // This line doesn't hold - see the Javadoc comments above.
          // assertEquals(expectedValue, oldValue);
          assertFalse(map.containsKey(keyToRemove));
          assertEquals(initialSize - 1, map.size());
        } else {
          try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeFine1() {
        Optional<Number> optionalInt = Optional.of((Number) 1);
        Number value = optionalInt.or(0.5); // fine
      }
    
      @SuppressWarnings("unused") // compilation test
      public void testSampleCodeFine2() {
        FluentIterable<? extends Number> numbers = getSomeNumbers();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Collections2.java

          int j = findNextJ();
          if (j == -1) {
            nextPermutation = null;
            return;
          }
          /*
           * requireNonNull is safe because we don't clear nextPermutation until we're done calling this
           * method.
           */
          requireNonNull(nextPermutation);
    
          int l = findNextL(j);
          Collections.swap(nextPermutation, j, l);
          int n = nextPermutation.size();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

        @Override
        public Map<String, Collection<Integer>> create(Object... elements) {
          ImmutableMap.Builder<String, Integer> builder = ImmutableMap.builder();
          // assumes that each set is a singleton or less (as is done for the samples)
          for (Object elem : elements) {
            @SuppressWarnings("unchecked") // safe by generator contract
            Entry<String, Collection<Integer>> entry = (Entry<String, Collection<Integer>>) elem;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

     * @author Robert Konigsberg
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class UnmodifiableCollectionTests {
    
      public static void assertMapEntryIsUnmodifiable(Entry<?, ?> entry) {
        try {
          // fine because the call is going to fail without modifying the entry
          @SuppressWarnings("unchecked")
          Entry<?, @Nullable Object> nullableValueEntry = (Entry<?, @Nullable Object>) entry;
          nullableValueEntry.setValue(null);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Preconditions.java

       * @see Verify#verify Verify.verify()
       */
      public static void checkState(
          boolean expression,
          /*
           * TODO(cpovirk): Consider removing @CheckForNull here, as we've done with the other methods'
           * errorMessageTemplate parameters: It is unlikely that callers intend for their string
           * template to be null (though we do handle that case gracefully at runtime). I've left this
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
Back to top