Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for red (0.27 sec)

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

        assertEquals(2, ms.count(Color.RED));
      }
    
      public void testCollectionCreate() {
        Multiset<Color> ms = EnumMultiset.create(asList(Color.RED, Color.YELLOW, Color.RED));
        assertEquals(0, ms.count(Color.BLUE));
        assertEquals(1, ms.count(Color.YELLOW));
        assertEquals(2, ms.count(Color.RED));
      }
    
      public void testIllegalCreate() {
        Collection<Color> empty = EnumSet.noneOf(Color.class);
        try {
    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)
  2. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

        assertEquals(2, ms.count(Color.RED));
      }
    
      public void testCollectionCreate() {
        Multiset<Color> ms = EnumMultiset.create(asList(Color.RED, Color.YELLOW, Color.RED));
        assertEquals(0, ms.count(Color.BLUE));
        assertEquals(1, ms.count(Color.YELLOW));
        assertEquals(2, ms.count(Color.RED));
      }
    
      public void testIllegalCreate() {
        Collection<Color> empty = EnumSet.noneOf(Color.class);
        try {
    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. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

      }
    
      private static class Red<A> {
        private class Orange {
          Class<?> getClassA() {
            return new TypeToken<A>(getClass()) {}.getRawType();
          }
    
          Red<A> getSelfB() {
            return Red.this;
          }
        }
    
        Red<A> getSelfA() {
          return this;
        }
    
        private class Yellow<B> extends Red<B>.Orange {
          Yellow(Red<B> red) {
            red.super();
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/MessageBuilder.java

        }
    
        /**
         * Append message content in error style.
         * By default, bold red
         *
         * @param message the message to append
         * @return the current builder
         */
        @Nonnull
        default MessageBuilder error(Object message) {
            return style(".error:-bold,f:red", message);
        }
    
        /**
         * Append message content in success style.
         * By default, bold green
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Jan 08 10:37:09 GMT 2024
    - 7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MultimapsTest.java

        }
        multimap.put(Color.RED, 1);
        multimap.put(Color.BLUE, 2);
        try {
          multimap.put(Color.GREEN, -1);
          fail("Expected IllegalArgumentException");
        } catch (IllegalArgumentException expected) {
        }
        assertThat(multimap.entries())
            .containsExactly(Maps.immutableEntry(Color.RED, 1), Maps.immutableEntry(Color.BLUE, 2));
      }
    
    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)
  6. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

      }
    
      private static class Red<A> {
        private class Orange {
          Class<?> getClassA() {
            return new TypeToken<A>(getClass()) {}.getRawType();
          }
    
          Red<A> getSelfB() {
            return Red.this;
          }
        }
    
        Red<A> getSelfA() {
          return this;
        }
    
        private class Yellow<B> extends Red<B>.Orange {
          Yellow(Red<B> red) {
            red.super();
          }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        // javac won't compile this without "this.<Integer>"
        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();
    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

        // javac won't compile this without "this.<Integer>"
        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();
    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. 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)
  10. src/main/java/org/codelibs/fess/entity/PingResponse.java

        private final String clusterStatus;
    
        private String message = StringUtil.EMPTY;
    
        public PingResponse(final ClusterHealthResponse response) {
            status = response.getStatus() == ClusterHealthStatus.RED ? 1 : 0;
            clusterName = response.getClusterName();
            clusterStatus = response.getStatus().toString();
            final Set<String> fieldSet = ComponentUtil.getFessConfig().getApiPingEsFieldSet();
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top