Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 97 for bear (8.71 sec)

  1. android/guava-tests/test/com/google/common/base/SuppliersTest.java

      }
    
      public void testOfInstance_equals() {
        new EqualsTester()
            .addEqualityGroup(Suppliers.ofInstance("foo"), Suppliers.ofInstance("foo"))
            .addEqualityGroup(Suppliers.ofInstance("bar"))
            .testEquals();
      }
    
      public void testCompose_equals() {
        new EqualsTester()
            .addEqualityGroup(
                Suppliers.compose(Functions.constant(1), Suppliers.ofInstance("foo")),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/PercentEscaperTest.java

      /** Tests that if specify '%' as safe the result is an idempotent escaper. */
      public void testCustomEscaper_withpercent() {
        UnicodeEscaper e = new PercentEscaper("%", false);
        assertEquals("foo%7Cbar", e.escape("foo|bar"));
        assertEquals("foo%7Cbar", e.escape("foo%7Cbar")); // idempotent
      }
    
      /** Test that giving a null 'safeChars' string causes a {@link NullPointerException}. */
      public void testBadArguments_null() {
        try {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

        this.predecessor = null;
        this.successor = null;
        return result;
      }
    
      /*
       * For discussion of the safety of the following methods for operating on predecessors and
       * successors, see the comments near the end of CompactHashMap, noting that the methods here call
       * requirePredecessors() and requireSuccessors(), which are defined at the end of this file.
       */
    
      private int getPredecessor(int entry) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        class Bar<T> {}
        class SubBar<T> extends Bar<T> {
          @SuppressWarnings("unused")
          Bar<T> delegate;
    
          TypeToken<SubBar<T>> fieldTypeAsSubBar() {
            return new TypeToken<SubBar<T>>() {};
          }
        }
    
        Field delegateField = SubBar.class.getDeclaredField("delegate");
        // barType is Bar<T>, a ParameterizedType with no generic arguments specified
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableTable.java

       *
       * <pre>{@code
       * static final ImmutableTable<Integer, Character, String> SPREADSHEET =
       *     new ImmutableTable.Builder<Integer, Character, String>()
       *         .put(1, 'A', "foo")
       *         .put(1, 'B', "bar")
       *         .put(2, 'A', "baz")
       *         .buildOrThrow();
       * }</pre>
       *
       * <p>By default, the order in which cells are added to the builder determines the iteration
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CompactHashSet.java

        for (int i = 0; i < elementCount; i++) {
          E element = (E) stream.readObject();
          add(element);
        }
      }
    
      /*
       * For discussion of the safety of the following methods, see the comments near the end of
       * CompactHashMap.
       */
    
      private Object requireTable() {
        return requireNonNull(table);
      }
    
      private int[] requireEntries() {
        return requireNonNull(entries);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/StreamsTest.java

        RuntimeException exception2 = new IllegalStateException("exception from stream 2");
        RuntimeException exception3 = new ArithmeticException("exception from stream 3");
        Stream<String> stream1 = Stream.of("foo", "bar").onClose(doThrow(exception1));
        Stream<String> stream2 = Stream.of("baz", "buh").onClose(doThrow(exception2));
        Stream<String> stream3 = Stream.of("quux").onClose(doThrow(exception3));
        RuntimeException exception = null;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Interners.java

            // didn't see it, trying to put it instead...
            Dummy sneaky = map.putIfAbsent(sample, Dummy.VALUE);
            if (sneaky == null) {
              return sample;
            } else {
              /* Someone beat us to it! Trying again...
               *
               * Technically this loop not guaranteed to terminate, so theoretically (extremely
               * unlikely) this thread might starve, but even then, there is always going to be another
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 13 14:30:51 GMT 2023
    - 5.9K bytes
    - Viewed (1)
  9. .github/ISSUE_TEMPLATE/feature_addition_request.yaml

            just a feature that seems like a sensible addition to Guava?
    
    
            Before new features get added to Guava, we really want to be sure that it's for a use case
            that actually comes up in the real world. We want to hear the real-world use case so the
            community can discuss and debate whether this feature is actually the *best* way to address
            the real use case, or whether or not a different abstraction might be more appropriate.
    
    
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  10. android/pom.xml

                <checkTestClasses>true</checkTestClasses>
                <signature>
                  <groupId>com.toasttab.android</groupId>
                  <artifactId>gummy-bears-api-19</artifactId>
                  <version>0.6.1</version>
                  <!-- TODO(cpovirk): In principle, it would make sense to *also* test compatibility with JDK 1.8, since guava-android also has JRE users. -->
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 12 20:26:18 GMT 2024
    - 19.4K bytes
    - Viewed (0)
Back to top