Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 78 of 78 for containsValue (0.09 sec)

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

       * constructed.
       */
      @Override
      public boolean containsRow(@CheckForNull Object rowKey) {
        return rowKeyToIndex.containsKey(rowKey);
      }
    
      @Override
      public boolean containsValue(@CheckForNull Object value) {
        for (@Nullable V[] row : array) {
          for (V element : row) {
            if (Objects.equal(value, element)) {
              return true;
            }
          }
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/collection/ArrayMap.java

        @Override
        public int size() {
            return size;
        }
    
        @Override
        public boolean isEmpty() {
            return size == 0;
        }
    
        @Override
        public boolean containsValue(final Object value) {
            return indexOf(value) >= 0;
        }
    
        /**
         * 値に対するインデックスを返します。
         *
         * @param value
         *            値
         * @return 値に対するインデックス。値が含まれていない場合は{@literal -1}
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertEquals(multimap.hashCode(), multimapView.hashCode());
        assertEquals(multimap.size(), multimapView.size());
        assertTrue(multimapView.containsKey("foo"));
        assertTrue(multimapView.containsValue(1));
        assertTrue(multimapView.containsEntry("bar", 2));
        assertEquals(singleton(1), multimapView.get("foo"));
        assertEquals(singleton(2), multimapView.get("bar"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/TraverserTest.java

        return new SuccessorsFunction<Character>() {
          @Override
          public Iterable<? extends Character> successors(Character node) {
            checkArgument(
                graphMap.containsKey(node) || graphMap.containsValue(node),
                "Node %s is not an element of this graph",
                node);
            return Ordering.natural().immutableSortedCopy(graphMap.get(node));
          }
        };
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 47.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/TraverserTest.java

        return new SuccessorsFunction<Character>() {
          @Override
          public Iterable<? extends Character> successors(Character node) {
            checkArgument(
                graphMap.containsKey(node) || graphMap.containsValue(node),
                "Node %s is not an element of this graph",
                node);
            return Ordering.natural().immutableSortedCopy(graphMap.get(node));
          }
        };
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 47.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMap.java

      public boolean isEmpty() {
        return size() == 0;
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
        return get(key) != null;
      }
    
      @Override
      public boolean containsValue(@CheckForNull Object value) {
        return values().contains(value);
      }
    
      // Overriding to mark it Nullable
      @Override
      @CheckForNull
      public abstract V get(@CheckForNull Object key);
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableMap.java

      public boolean isEmpty() {
        return size() == 0;
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
        return get(key) != null;
      }
    
      @Override
      public boolean containsValue(@CheckForNull Object value) {
        return values().contains(value);
      }
    
      // Overriding to mark it Nullable
      @Override
      @CheckForNull
      public abstract V get(@CheckForNull Object key);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

        for (Object key : lookupKeys) {
          assertTrue(cache.asMap().containsKey(key));
        }
        assertSame(extraValue, cache.asMap().get(extraKey));
        assertFalse(cache.asMap().containsValue(extraKey));
      }
    
      public void testBulkLoad_partial() throws ExecutionException {
        final Object extraKey = new Object();
        final Object extraValue = new Object();
        CacheLoader<Object, Object> loader =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
Back to top