Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 1,649 for Contains (0.09 sec)

  1. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        cache.put(20, 22);
        cache.put(5, 10);
    
        fakeTicker.advance(501, MILLISECONDS);
    
        assertTrue(cache.asMap().values().contains(22));
        assertTrue(cache.asMap().values().contains(10));
        assertFalse(cache.asMap().values().contains(20));
      }
    
      public void testAsMapKeySet() {
        Cache<Integer, Integer> cache =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/main/java/org/apache/maven/artifact/metadata/ArtifactMetadata.java

     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.artifact.metadata;
    
    /**
     * Contains metadata about an artifact, and methods to retrieve/store it from an artifact repository.
     */
    @Deprecated
    public interface ArtifactMetadata extends org.apache.maven.repository.legacy.metadata.ArtifactMetadata {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. internal/once/singleton.go

    package once
    
    // Singleton contains a pointer to T that must be set once.
    // Until the value is set all Get() calls will block.
    type Singleton[T any] struct {
    	v   *T
    	set chan struct{}
    }
    
    // NewSingleton creates a new unset singleton.
    func NewSingleton[T any]() *Singleton[T] {
    	return &Singleton[T]{set: make(chan struct{}), v: nil}
    }
    
    // Get will return the singleton value.
    func (s *Singleton[T]) Get() *T {
    	<-s.set
    	return s.v
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 952 bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/JdkBackedImmutableSet.java

        this.delegateList = delegateList;
      }
    
      @Override
      E get(int index) {
        return delegateList.get(index);
      }
    
      @Override
      public boolean contains(@CheckForNull Object object) {
        return delegate.contains(object);
      }
    
      @Override
      boolean isPartialView() {
        return false;
      }
    
      @Override
      public int size() {
        return delegateList.size();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. compat/maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java

            printErrors(result);
    
            assertEquals(2, result.getArtifacts().size());
    
            assertTrue(result.getArtifacts().contains(g));
    
            assertTrue(result.getArtifacts().contains(h));
    
            assertLocalArtifactPresent(g);
    
            assertLocalArtifactPresent(h);
        }
    
        @Test
        void
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableList.java

          return size() - index;
        }
    
        @Override
        public ImmutableList<E> reverse() {
          return forwardList;
        }
    
        @Override
        public boolean contains(@CheckForNull Object object) {
          return forwardList.contains(object);
        }
    
        @Override
        public int indexOf(@CheckForNull Object object) {
          int index = forwardList.lastIndexOf(object);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SynchronizedQueueTest.java

        public boolean isEmpty() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.isEmpty();
        }
    
        @Override
        public boolean contains(Object object) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.contains(object);
        }
    
        @Override
        public boolean add(E element) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.add(element);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 20:50:58 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/BytesTest.java

      }
    
      public void testContains() {
        assertThat(Bytes.contains(EMPTY, (byte) 1)).isFalse();
        assertThat(Bytes.contains(ARRAY1, (byte) 2)).isFalse();
        assertThat(Bytes.contains(ARRAY234, (byte) 1)).isFalse();
        assertThat(Bytes.contains(new byte[] {(byte) -1}, (byte) -1)).isTrue();
        assertThat(Bytes.contains(ARRAY234, (byte) 2)).isTrue();
        assertThat(Bytes.contains(ARRAY234, (byte) 3)).isTrue();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableSet.java

      }
    
      @Override
      public UnmodifiableIterator<E> iterator() {
        return Iterators.unmodifiableIterator(delegate.iterator());
      }
    
      @Override
      public boolean contains(@Nullable Object object) {
        return object != null && delegate.contains(object);
      }
    
      @Override
      public boolean containsAll(Collection<?> targets) {
        return delegate.containsAll(targets);
      }
    
      @Override
      public int size() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/BooleansTest.java

          }
        }
      }
    
      public void testContains() {
        assertThat(Booleans.contains(EMPTY, false)).isFalse();
        assertThat(Booleans.contains(ARRAY_FALSE, true)).isFalse();
        assertThat(Booleans.contains(ARRAY_FALSE, false)).isTrue();
        assertThat(Booleans.contains(ARRAY_FALSE_TRUE, false)).isTrue();
        assertThat(Booleans.contains(ARRAY_FALSE_TRUE, true)).isTrue();
      }
    
      public void testIndexOf() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 24.8K bytes
    - Viewed (0)
Back to top