Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 105 for Singleton (0.07 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

        assertEquals(ImmutableRangeSet.<Integer>all(), rangeSet.complement());
        assertFalse(rangeSet.contains(0));
        assertFalse(rangeSet.intersects(Range.singleton(0)));
        assertFalse(rangeSet.encloses(Range.singleton(0)));
        assertTrue(rangeSet.enclosesAll(rangeSet));
        assertTrue(rangeSet.isEmpty());
      }
    
      public void testAll() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/TreeBasedTableTest.java

        assertEquals(singleton("bar"), set);
        set.clear();
        assertTrue(set.isEmpty());
        assertEquals(singleton("foo"), sortedTable.rowKeySet());
      }
    
      public void testRowKeySetTailSet() {
        sortedTable = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        Set<String> set = sortedTable.rowKeySet().tailSet("cat");
        assertEquals(singleton("foo"), set);
        set.clear();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultLifecycleRegistry.java

                }
            }
        }
    
        @Singleton
        @Named(Lifecycle.CLEAN)
        @SuppressWarnings("unused")
        static class CleanLifecycleProvider extends BaseLifecycleProvider {
            CleanLifecycleProvider() {
                super(Lifecycle.CLEAN);
            }
        }
    
        @Singleton
        @Named(Lifecycle.DEFAULT)
        @SuppressWarnings("unused")
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        if (supportsRemove) {
          int initialSize = map.size();
          assertTrue(keys.removeAll(singleton(key)));
          assertEquals(initialSize - 1, map.size());
          assertFalse(map.containsKey(key));
        } else {
          assertThrows(UnsupportedOperationException.class, () -> keys.removeAll(singleton(key)));
        }
        assertInvariants(map);
      }
    
      public void testKeySetRetainAll() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        Collection<String> c = MinimalCollection.of("a");
        Set<String> set = copyOf(c);
        assertEquals(singleton("a"), set);
      }
    
      public void testCopyOf_collection_oneElementRepeated() {
        Collection<String> c = MinimalCollection.of("a", "a", "a");
        Set<String> set = copyOf(c);
        assertEquals(singleton("a"), set);
      }
    
      public void testCopyOf_collection_general() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                new TestStringSetGenerator() {
                  @Override
                  public Set<String> create(String[] elements) {
                    return singleton(elements[0]);
                  }
                })
            .named("singleton")
            .withFeatures(
                CollectionFeature.SERIALIZABLE,
                CollectionFeature.ALLOWS_NULL_VALUES,
                CollectionSize.ONE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SetOperationsTest.java

                        checkArgument(elements.length == 1);
                        return Sets.union(Sets.<String>newHashSet(elements), newHashSet(elements));
                      }
                    })
                .named("singleton U itself")
                .withFeatures(CollectionSize.ONE, CollectionFeature.ALLOWS_NULL_VALUES)
                .createTestSuite());
    
        suite.addTest(
            SetTestSuiteBuilder.using(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertFalse(entries.contains(Maps.immutableEntry("foo", singleton(2))));
        assertFalse(entries.remove(Maps.immutableEntry("foo", singleton(2))));
        assertTrue(map.containsKey("foo"));
        assertTrue(entries.contains(Maps.immutableEntry("foo", singleton(1))));
        assertTrue(entries.remove(Maps.immutableEntry("foo", singleton(1))));
        assertFalse(map.containsKey("foo"));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  9. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.repository.internal;
    
    import javax.inject.Inject;
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.io.InputStream;
    import java.nio.file.Files;
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        if (supportsRemove) {
          int initialSize = map.size();
          assertTrue(keys.removeAll(singleton(key)));
          assertEquals(initialSize - 1, map.size());
          assertFalse(map.containsKey(key));
        } else {
          assertThrows(UnsupportedOperationException.class, () -> keys.removeAll(singleton(key)));
        }
        assertInvariants(map);
      }
    
      public void testKeySetRetainAll() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
Back to top