Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 141 for compact (0.15 sec)

  1. android/guava/src/com/google/common/primitives/Floats.java

       * @param a the first {@code float} to compare
       * @param b the second {@code float} to compare
       * @return the result of invoking {@link Float#compare(float, float)}
       */
      public static int compare(float a, float b) {
        return Float.compare(a, b);
      }
    
      /**
       * Returns {@code true} if {@code value} represents a real number. This is equivalent to, but not
       * necessarily implemented as, {@code !(Float.isInfinite(value) || Float.isNaN(value))}.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/InetAddressesTest.java

              () -> InetAddresses.getCompatIPv4Address((Inet6Address) ip));
        }
    
        ImmutableSet<String> validCompatAddresses = ImmutableSet.of("::1.2.3.4", "::102:304");
        String compatStr = "1.2.3.4";
        InetAddress compat = InetAddresses.forString(compatStr);
    
        for (String validCompatAddress : validCompatAddresses) {
          InetAddress ip = InetAddresses.forString(validCompatAddress);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSortedSet.java

        // Pretend the comparator can compare anything. If it turns out it can't
        // compare a and b, we should get a CCE or NPE on the subsequent line. Only methods
        // that are spec'd to throw CCE and NPE should call this.
        @SuppressWarnings({"unchecked", "nullness"})
        Comparator<@Nullable Object> unsafeComparator = (Comparator<@Nullable Object>) comparator;
        return unsafeComparator.compare(a, b);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

                          @Override
                          public int compare(Entry<String, String> left, Entry<String, String> right) {
                            return ComparisonChain.start()
                                .compare(left.getKey(), right.getKey(), Ordering.natural().nullsFirst())
                                .compare(
                                    left.getValue(), right.getValue(), Ordering.natural().nullsFirst())
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

            }
          };
    
      private static final Ordering<Invokable<?, ?>> BY_NUMBER_OF_PARAMETERS =
          new Ordering<Invokable<?, ?>>() {
            @Override
            public int compare(Invokable<?, ?> left, Invokable<?, ?> right) {
              return Ints.compare(left.getParameters().size(), right.getParameters().size());
            }
          };
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/InetAddresses.java

       */
      public static boolean isUriInetAddress(String ipString) {
        return forUriStringNoThrow(ipString) != null;
      }
    
      /**
       * Evaluates whether the argument is an IPv6 "compat" address.
       *
       * <p>An "IPv4 compatible", or "compat", address is one with 96 leading bits of zero, with the
       * remaining 32 bits interpreted as an IPv4 address. These are conventionally represented in
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  7. android/guava/src/com/google/common/collect/Collections2.java

       * Section 7.2.1.2. The iteration order follows the lexicographical order. This means that the
       * first permutation will be in ascending order, and the last will be in descending order.
       *
       * <p>Elements that compare equal are considered equal and no new permutations are created by
       * swapping them.
       *
       * <p>An empty iterable has only one permutation, which is an empty list.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ContiguousSet.java

      }
    
      @Override
      public ContiguousSet<C> subSet(C fromElement, C toElement) {
        checkNotNull(fromElement);
        checkNotNull(toElement);
        checkArgument(comparator().compare(fromElement, toElement) <= 0);
        return subSetImpl(fromElement, true, toElement, false);
      }
    
      /** @since 12.0 */
      @GwtIncompatible // NavigableSet
      @Override
      public ContiguousSet<C> subSet(
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        assertEquals(3, ms.size());
      }
    
      public void testCustomComparator() throws Exception {
        Comparator<String> comparator =
            new Comparator<String>() {
              @Override
              public int compare(String o1, String o2) {
                return o2.compareTo(o1);
              }
            };
        TreeMultiset<String> ms = TreeMultiset.create(comparator);
    
        ms.add("b");
        ms.add("c");
        ms.add("a");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

            methods,
            new Comparator<Method>() {
              @Override
              public int compare(Method m1, Method m2) {
                int nameComparison = m1.getName().compareTo(m2.getName());
                if (nameComparison != 0) {
                  return nameComparison;
                } else {
                  return Ints.compare(m1.getParameterTypes().length, m2.getParameterTypes().length);
                }
              }
            });
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 14:48:57 GMT 2023
    - 27.4K bytes
    - Viewed (0)
Back to top