Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,286 for if (0.12 sec)

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

       * Returns a new bimap with the same mappings as the specified map. If the specified map is an
       * {@code EnumBiMap}, the new bimap has the same types as the provided map. Otherwise, the
       * specified map must contain at least one mapping, in order to determine the key and value types.
       *
       * @param map the map whose mappings are to be placed in this map
       * @throws IllegalArgumentException if map is not an {@code EnumBiMap} instance and contains no
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 6.3K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

          Iterator<String> iterator = components.iterator();
          if (iterator.hasNext()) {
            sb.append(iterator.next().toString());
            while (iterator.hasNext()) {
              sb.append(DELIMITER_STRING);
              sb.append(iterator.next());
            }
          }
          dummy ^= sb.toString().length();
        }
        return dummy;
      }
    
      /**
       * Only appends delimiter if the accumulated string is non-empty. Note: this isn't a candidate
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

      public Set<Entry<K, V>> entries() {
        return super.entries();
      }
    
      /**
       * Returns a view collection of all <i>distinct</i> keys contained in this multimap. Note that the
       * key set contains a key if and only if this multimap maps that key to at least one value.
       *
       * <p>The iterator generated by the returned set traverses the keys in the order they were first
       * added to the multimap.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

        rangeSet.add(a);
        rangeSet.add(b);
        if (a.isEmpty() && b.isEmpty()) {
          assertThat(rangeSet.asRanges()).isEmpty();
        } else if (a.isEmpty()) {
          assertThat(rangeSet.asRanges()).contains(b);
        } else if (b.isEmpty()) {
          assertThat(rangeSet.asRanges()).contains(a);
        } else if (a.isConnected(b)) {
          assertThat(rangeSet.asRanges()).containsExactly(a.span(b));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 24.3K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

      }
    
      public static <K, V> ImmutableMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
        if ((map instanceof ImmutableMap) && !(map instanceof ImmutableSortedMap)) {
          @SuppressWarnings("unchecked") // safe since map is not writable
          ImmutableMap<K, V> kvMap = (ImmutableMap<K, V>) map;
          return kvMap;
        } else if (map instanceof EnumMap) {
          EnumMap<?, ?> enumMap = (EnumMap<?, ?>) map;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

          boolean doEquals(byte[] a, byte[] b) {
            if (a.length != b.length) {
              return false;
            }
            boolean areEqual = true;
            for (int i = 0; i < a.length; i++) {
              areEqual &= (a[i] == b[i]);
            }
            return areEqual;
          }
        },
        XORING_TO_BYTE {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            if (a.length != b.length) {
              return false;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

          boolean doEquals(byte[] a, byte[] b) {
            if (a.length != b.length) {
              return false;
            }
            boolean areEqual = true;
            for (int i = 0; i < a.length; i++) {
              areEqual &= (a[i] == b[i]);
            }
            return areEqual;
          }
        },
        XORING_TO_BYTE {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            if (a.length != b.length) {
              return false;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/SortedMultiset.java

      /**
       * Returns the comparator that orders this multiset, or {@link Ordering#natural()} if the natural
       * ordering of the elements is used.
       */
      @Override
      Comparator<? super E> comparator();
    
      /**
       * Returns the entry of the first element in this multiset, or {@code null} if this multiset is
       * empty.
       */
      @CheckForNull
      Entry<E> firstEntry();
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

          assertEquals("index " + i, expected, actual);
          i++;
        }
        if (actualIterator.hasNext()) {
          fail("index " + i + ", expected is exhausted, actual <" + actualIterator.next() + ">");
        }
      }
    
      /**
       * Verifies that a collection is immutable.
       *
       * <p>A collection is considered immutable if:
       *
       * <ol>
    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. guava-tests/test/com/google/common/collect/AbstractTableTest.java

        return true;
      }
    
      protected boolean supportsNullValues() {
        return false;
      }
    
      public void testClear() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        if (supportsRemove()) {
          table.clear();
          assertEquals(0, table.size());
          assertFalse(table.containsRow("foo"));
        } else {
          try {
            table.clear();
            fail();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 6K bytes
    - Viewed (0)
Back to top