Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for collapsed (0.17 sec)

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

     * to implement the related methods as well. Finally, two collection views are provided: {@link
     * #elementSet} contains the distinct elements of the multiset "with duplicates collapsed", and
     * {@link #entrySet} is similar but contains {@link Entry Multiset.Entry} instances, each providing
     * both a distinct element and the count of that element.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        } catch (IllegalArgumentException expected) {
          // We don't really care which values the exception message contains, but they should be
          // different from each other. If buildKeepingLast() collapsed duplicates, that might end up
          // not being true.
          Pattern pattern = Pattern.compile("Multiple entries with same key: four=(.*) and four=(.*)");
          assertThat(expected).hasMessageThat().matches(pattern);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/InternetDomainName.java

       * @param isFinalPart Is this the final (rightmost) domain part?
       * @return Whether the part is valid
       */
      private static boolean validatePart(String part, boolean isFinalPart) {
    
        // These tests could be collapsed into one big boolean expression, but
        // they have been left as independent tests for clarity.
    
        if (part.length() < 1 || part.length() > MAX_DOMAIN_PART_LENGTH) {
          return false;
        }
    
        /*
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 20:47:23 GMT 2024
    - 28K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/Network.java

       * an edge connecting node A to node B if this {@link Network} has an edge connecting A to B.
       *
       * <p>If this network {@link #allowsParallelEdges() allows parallel edges}, parallel edges will be
       * treated as if collapsed into a single edge. For example, the {@link #degree(Object)} of a node
       * in the {@link Graph} view may be less than the degree of the same node in this {@link Network}.
       */
      Graph<N> asGraph();
    
      //
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 21.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        } catch (IllegalArgumentException expected) {
          // We don't really care which values the exception message contains, but they should be
          // different from each other. If buildKeepingLast() collapsed duplicates, that might end up
          // not being true.
          Pattern pattern = Pattern.compile("Multiple entries with same key: four=(.*) and four=(.*)");
          assertThat(expected).hasMessageThat().matches(pattern);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 14:39:16 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          extends TestUnhashableCollectionGenerator<Set<UnhashableObject>>
          implements TestSetGenerator<UnhashableObject> {}
    
      private static Ordering<String> createExplicitComparator(String[] elements) {
        // Collapse equal elements, which Ordering.explicit() doesn't support, while
        // maintaining the ordering by first occurrence.
        Set<String> elementsPlus = Sets.newLinkedHashSet();
        elementsPlus.add(BEFORE_FIRST);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/net/InetAddressesTest.java

        assertEquals("1.2.3.4", InetAddresses.toUriString(ip));
      }
    
      public void testToUriStringIPv6() {
        // Unfortunately the InetAddress.toString() method for IPv6 addresses
        // does not collapse contiguous shorts of zeroes with the :: abbreviation.
        String ipStr = "3ffe::1";
        InetAddress ip = InetAddresses.forString(ipStr);
        assertEquals("[3ffe::1]", InetAddresses.toUriString(ip));
      }
    
    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)
  8. android/guava/src/com/google/common/net/InetAddresses.java

       * href="http://tools.ietf.org/html/rfc4291#section-2.5.5.2">RFC 4291</a>.
       *
       * <p>Note: This method takes a {@code String} argument because {@link InetAddress} automatically
       * collapses mapped addresses to IPv4. (It is actually possible to avoid this using one of the
       * obscure {@link Inet6Address} methods, but it would be unwise to depend on such a
       * poorly-documented feature.)
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  9. android/guava/src/com/google/common/base/CharMatcher.java

              return finishCollapseFrom(sequence, i + 1, len, replacement, builder, true);
            }
          }
        }
        // no replacement needed
        return sequence.toString();
      }
    
      /**
       * Collapses groups of matching characters exactly as {@link #collapseFrom} does, except that
       * groups of matching BMP characters at the start or end of the sequence are removed without
       * replacement.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

        assertEquals("1.2.3.4", InetAddresses.toUriString(ip));
      }
    
      public void testToUriStringIPv6() {
        // Unfortunately the InetAddress.toString() method for IPv6 addresses
        // does not collapse contiguous shorts of zeroes with the :: abbreviation.
        String ipStr = "3ffe::1";
        InetAddress ip = InetAddresses.forString(ipStr);
        assertEquals("[3ffe::1]", InetAddresses.toUriString(ip));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
Back to top