Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Greene (0.29 sec)

  1. android/guava-tests/test/com/google/common/io/AppendableWriterTest.java

    import java.io.Closeable;
    import java.io.Flushable;
    import java.io.IOException;
    import java.io.Writer;
    
    /**
     * Unit test for {@link AppendableWriter}.
     *
     * @author Alan Green
     */
    public class AppendableWriterTest extends IoTestCase {
    
      /** Helper class for testing behavior with Flushable and Closeable targets. */
      private static class SpyAppendable implements Appendable, Flushable, Closeable {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

                ? EnumMultiset.create(AnEnum.class)
                : EnumMultiset.create(asList(elements));
          }
        };
      }
    
      private enum Color {
        BLUE,
        RED,
        YELLOW,
        GREEN,
        WHITE
      }
    
      private enum Gender {
        MALE,
        FEMALE
      }
    
      public void testClassCreate() {
        Multiset<Color> ms = EnumMultiset.create(Color.class);
        ms.add(Color.RED);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        ImmutableList.Builder<Integer> webSafeColorsBuilder = ImmutableList.builder();
        for (Integer red : colorElem) {
          for (Integer green : colorElem) {
            for (Integer blue : colorElem) {
              webSafeColorsBuilder.add((red << 16) + (green << 8) + blue);
            }
          }
        }
        ImmutableList<Integer> webSafeColors = webSafeColorsBuilder.build();
        assertEquals(216, webSafeColors.size());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MultimapsTest.java

                assertEquals(newHashSet(elements), multimap.get("foo"));
              }
            };
    
        tester.test();
      }
    
      private enum Color {
        BLUE,
        RED,
        YELLOW,
        GREEN
      }
    
      private abstract static class CountingSupplier<E> implements Supplier<E>, Serializable {
        int count;
    
        abstract E getImpl();
    
        @Override
        public E get() {
          count++;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/FluentIterable.java

       *
       * <pre>{@code
       * Color red = new Color("red", 255, 0, 0);
       * ...
       * FluentIterable<Color> allColors = FluentIterable.from(ImmutableSet.of(red, green, blue));
       *
       * Map<String, Color> colorForName = allColors.uniqueIndex(toStringFunction());
       * assertThat(colorForName).containsEntry("red", red);
       * }</pre>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/EnumMultisetTest.java

                ? EnumMultiset.create(AnEnum.class)
                : EnumMultiset.create(asList(elements));
          }
        };
      }
    
      private enum Color {
        BLUE,
        RED,
        YELLOW,
        GREEN,
        WHITE
      }
    
      private enum Gender {
        MALE,
        FEMALE
      }
    
      public void testClassCreate() {
        Multiset<Color> ms = EnumMultiset.create(Color.class);
        ms.add(Color.RED);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        ImmutableSet.Builder<Integer> webSafeColorsBuilder = this.<Integer>builder();
        for (Integer red : colorElem) {
          for (Integer green : colorElem) {
            for (Integer blue : colorElem) {
              webSafeColorsBuilder.add((red << 16) + (green << 8) + blue);
            }
          }
        }
        ImmutableSet<Integer> webSafeColors = webSafeColorsBuilder.build();
        assertEquals(216, webSafeColors.size());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        ImmutableSet.Builder<Integer> webSafeColorsBuilder = this.<Integer>builder();
        for (Integer red : colorElem) {
          for (Integer green : colorElem) {
            for (Integer blue : colorElem) {
              webSafeColorsBuilder.add((red << 16) + (green << 8) + blue);
            }
          }
        }
        ImmutableSet<Integer> webSafeColors = webSafeColorsBuilder.build();
        assertEquals(216, webSafeColors.size());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    seemed to rise like a stalk out of a sea of green leaves that lay
    far below her.
    
      `What CAN all that green stuff be?' said Alice.  `And where
    HAVE my shoulders got to?  And oh, my poor hands, how is it I
    can't see you?'  She was moving them about as she spoke, but no
    result seemed to follow, except a little shaking among the
    distant green leaves.
    
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/AppendableWriterTest.java

    import java.io.Closeable;
    import java.io.Flushable;
    import java.io.IOException;
    import java.io.Writer;
    
    /**
     * Unit test for {@link AppendableWriter}.
     *
     * @author Alan Green
     */
    public class AppendableWriterTest extends IoTestCase {
    
      /** Helper class for testing behavior with Flushable and Closeable targets. */
      private static class SpyAppendable implements Appendable, Flushable, Closeable {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.2K bytes
    - Viewed (0)
Back to top