Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 723 for SET (0.12 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

      }
    
      public void testSetFutureDelegateAlreadySuccessful() throws Exception {
        delegate.set(5);
        assertThat(future.setFuture(delegate)).isTrue();
        assertSuccessful(future, 5);
      }
    
      public void testSetFutureDelegateLaterSuccessful() throws Exception {
        assertThat(future.setFuture(delegate)).isTrue();
        delegate.set(6);
        assertSuccessful(future, 6);
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java

        public Iterable<E> order(List<E> insertionOrder) {
          return gen.order(insertionOrder);
        }
      }
    
      private static Set<Feature<?>> computeReserializedCollectionFeatures(Set<Feature<?>> features) {
        Set<Feature<?>> derivedFeatures = new HashSet<>(features);
        derivedFeatures.remove(SERIALIZABLE);
        derivedFeatures.remove(SERIALIZABLE_INCLUDING_VIEWS);
        return derivedFeatures;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

          @SuppressWarnings("unchecked") // The natural-ordered empty set supports all types.
          RegularImmutableSortedSet<E> result =
              (RegularImmutableSortedSet<E>) RegularImmutableSortedSet.NATURAL_EMPTY_SET;
          return result;
        } else {
          return new RegularImmutableSortedSet<>(ImmutableList.of(), comparator);
        }
      }
    
      /**
       * Returns the empty immutable sorted set.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        set.clear();
        assertTrue(set.isEmpty());
        assertEquals(Collections.singleton("bar"), sortedTable.rowKeySet());
      }
    
      public void testRowKeySetSubSet() {
        sortedTable = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c', "dog", 2, 'd');
        Set<String> set = sortedTable.rowKeySet().subSet("cat", "egg");
        assertEquals(Collections.singleton("dog"), set);
        set.clear();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 15K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java

      }
    
      public void testFutureGetThrowsCancellationIfOutputCancelled() throws Exception {
        inputFuture.set(SLOW_OUTPUT_VALID_INPUT_DATA);
        outputFuture.cancel(true); // argument is ignored
        assertThrows(CancellationException.class, () -> resultFuture.get());
      }
    
      public void testAsyncToString() throws Exception {
        inputFuture.set(SLOW_OUTPUT_VALID_INPUT_DATA);
        assertThat(resultFuture.toString()).contains(outputFuture.toString());
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

       *
       * @see #assertMoreInvariants
       * @param map the map to check.
       */
      protected final void assertInvariants(Map<K, V> map) {
        Set<K> keySet = map.keySet();
        Collection<V> valueCollection = map.values();
        Set<Entry<K, V>> entrySet = map.entrySet();
    
        assertEquals(map.size() == 0, map.isEmpty());
        assertEquals(map.size(), keySet.size());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheBuilderSpec.java

                format("key %s value set to %s, must be integer", key, value), e);
          }
        }
      }
    
      /** Parse initialCapacity */
      static class InitialCapacityParser extends IntegerParser {
        @Override
        protected void parseInteger(CacheBuilderSpec spec, int value) {
          checkArgument(
              spec.initialCapacity == null,
              "initial capacity was already set to %s",
              spec.initialCapacity);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

       * </ol>
       *
       * @param set the presumed-immutable set
       * @param sampleElement an element of the same type as that contained by {@code set}. {@code set}
       *     may or may not have {@code sampleElement} as a member.
       */
      public static <E extends @Nullable Object> void assertSetIsUnmodifiable(
          Set<E> set, E sampleElement) {
        assertCollectionIsUnmodifiable(set, sampleElement);
      }
    
      /**
    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)
  9. guava-tests/test/com/google/common/collect/TableCollectionTest.java

    import com.google.common.collect.testing.features.Feature;
    import java.util.Collection;
    import java.util.Collections;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.SortedSet;
    import junit.framework.Test;
    import junit.framework.TestCase;
    import junit.framework.TestSuite;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        }
      }
    
      /** get returns the last value set at index */
      public void testGetSet() {
        AtomicDoubleArray aa = new AtomicDoubleArray(VALUES.length);
        for (int i = 0; i < VALUES.length; i++) {
          assertBitEquals(0.0, aa.get(i));
          aa.set(i, VALUES[i]);
          assertBitEquals(VALUES[i], aa.get(i));
          aa.set(i, -3.0);
          assertBitEquals(-3.0, aa.get(i));
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
Back to top