Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 302 for StringBuilder$ (0.15 sec)

  1. guava-tests/test/com/google/common/collect/ListsTest.java

                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
    
        return suite;
      }
    
      public void testCharactersOfIsView() {
        StringBuilder builder = new StringBuilder("abc");
        List<Character> chars = charactersOf(builder);
        assertEquals(asList('a', 'b', 'c'), chars);
        builder.append("def");
        assertEquals(asList('a', 'b', 'c', 'd', 'e', 'f'), chars);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

      public void testFreshInstance() {
        assertFreshInstances(
            String.class,
            CharSequence.class,
            Appendable.class,
            StringBuffer.class,
            StringBuilder.class,
            Pattern.class,
            MatchResult.class,
            Number.class,
            int.class,
            Integer.class,
            long.class,
            Long.class,
            short.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

        String toTest =
            MoreObjects.toStringHelper(new TestClass())
                .omitEmptyValues()
                // CharSequences
                .add("field1", "")
                .add("field2", new StringBuilder())
                // nio CharBuffer (implements CharSequence) is tested separately below
                // Collections and Maps
                .add("field11", Arrays.asList("Hello"))
                .add("field12", new ArrayList<>())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 21:19:18 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        checkArgument(
            implementations.put(type, implementation) == null,
            "Implementation for %s was already registered",
            type);
      }
    
      static {
        setImplementation(Appendable.class, StringBuilder.class);
        setImplementation(BlockingQueue.class, LinkedBlockingDeque.class);
        setImplementation(BlockingDeque.class, LinkedBlockingDeque.class);
        setImplementation(ConcurrentMap.class, ConcurrentHashMap.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/IterablesTest.java

      public void testIndexOf_genericPredicate() {
        List<CharSequence> sequences = Lists.newArrayList();
        sequences.add("bob");
        sequences.add(new StringBuilder("charlie"));
        sequences.add(new StringBuffer("henry"));
        sequences.add(new StringBuilder("apple"));
        sequences.add("lemon");
    
        assertEquals(3, Iterables.indexOf(sequences, STARTSWITH_A));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        checkArgument(
            implementations.put(type, implementation) == null,
            "Implementation for %s was already registered",
            type);
      }
    
      static {
        setImplementation(Appendable.class, StringBuilder.class);
        setImplementation(BlockingQueue.class, LinkedBlockingDeque.class);
        setImplementation(BlockingDeque.class, LinkedBlockingDeque.class);
        setImplementation(ConcurrentMap.class, ConcurrentHashMap.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                Version version,
                String fieldName,
                String sourceHint,
                String message,
                InputLocationTracker tracker) {
            StringBuilder buffer = new StringBuilder(256);
            buffer.append('\'').append(fieldName).append('\'');
    
            if (sourceHint != null) {
                buffer.append(" for ").append(sourceHint);
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 77.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/net/InetAddresses.java

        //   start->num => "num"     start->gap => "::"
        //   num->num   => ":num"    num->gap   => "::"
        //   gap->num   => "num"     gap->gap   => ""
        StringBuilder buf = new StringBuilder(39);
        boolean lastWasNumber = false;
        for (int i = 0; i < hextets.length; i++) {
          boolean thisIsNumber = hextets[i] >= 0;
          if (thisIsNumber) {
            if (lastWasNumber) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  9. api/maven-api-model/src/main/mdo/maven.mdo

            return getDelegate().getProjectDirectory();
        }
    
        /**
         * @return the model id as {@code groupId:artifactId:packaging:version}
         */
        public String getId() {
            StringBuilder id = new StringBuilder( 64 );
    
            id.append( ( getGroupId() == null ) ? "[inherited]" : getGroupId() );
            id.append( ":" );
            id.append( getArtifactId() );
            id.append( ":" );
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Oct 09 11:07:31 UTC 2024
    - 115.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Ascii.java

            return string;
          }
          // if the length of the toString() result was > maxLength for some reason, truncate that
          seq = string;
        }
    
        return new StringBuilder(maxLength)
            .append(seq, 0, truncationLength)
            .append(truncationIndicator)
            .toString();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top