Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for bear (0.13 sec)

  1. guava/src/com/google/common/base/Optional.java

     *
     * <p>This class is not intended as a direct analogue of any existing "option" or "maybe" construct
     * from other programming environments, though it may bear some similarities.
     *
     * <p>An instance of this class is serializable if its reference is absent or is a serializable
     * object.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Optional.java

     *
     * <p>This class is not intended as a direct analogue of any existing "option" or "maybe" construct
     * from other programming environments, though it may bear some similarities.
     *
     * <p>An instance of this class is serializable if its reference is absent or is a serializable
     * object.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 13K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMultiset.java

       * multisets ("constant multisets"). Example:
       *
       * <pre>{@code
       * public static final ImmutableMultiset<Bean> BEANS =
       *     new ImmutableMultiset.Builder<Bean>()
       *         .addCopies(Bean.COCOA, 4)
       *         .addCopies(Bean.GARDEN, 6)
       *         .addCopies(Bean.RED, 8)
       *         .addCopies(Bean.BLACK_EYED, 10)
       *         .build();
       * }</pre>
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

        links = 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
       * link(), which is defined at the end of this file.
       */
    
      private int getPredecessor(int entry) {
        return ((int) (link(entry) >>> 32)) - 1;
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ObjectArraysTest.java

        String[] result = ObjectArrays.concat("foo", new String[] {"bar"});
        assertThat(result).asList().containsExactly("foo", "bar").inOrder();
      }
    
      public void testPrependTwoElements() {
        String[] result = ObjectArrays.concat("foo", new String[] {"bar", "baz"});
        assertThat(result).asList().containsExactly("foo", "bar", "baz").inOrder();
      }
    
      public void testAppendZeroElements() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/net/InternetDomainNameTest.java

              "",
              " ",
              "127.0.0.1",
              "::1",
              "13",
              "abc.12c",
              "foo-.com",
              "_bar.quux",
              "foo+bar.com",
              "foo!bar.com",
              ".foo.com",
              "..bar.com",
              "baz..com",
              "..quiffle.com",
              "fleeb.com..",
              ".",
              "..",
              "...",
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        multimap.put(new DerivedComparable("bar"), new DerivedComparable("b"));
        multimap.put(new DerivedComparable("bar"), new DerivedComparable("a"));
        multimap.put(new DerivedComparable("bar"), new DerivedComparable("r"));
        assertThat(multimap.keySet())
            .containsExactly(new DerivedComparable("bar"), new DerivedComparable("foo"))
            .inOrder();
        assertThat(multimap.values())
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        multiset.add("foo", 2);
        multiset.add("bar");
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[foo x 2, bar]", multiset.toString());
      }
    
      public void testCreateFromIterable() {
        Multiset<String> multiset = TreeMultiset.create(Arrays.asList("foo", "bar", "foo"));
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/IterablesTest.java

      public void testLimit() {
        Iterable<String> iterable = newArrayList("foo", "bar", "baz");
        Iterable<String> limited = Iterables.limit(iterable, 2);
    
        List<String> expected = ImmutableList.of("foo", "bar");
        List<String> actual = newArrayList(limited);
        assertEquals(expected, actual);
        assertCanIterateAgain(limited);
        assertEquals("[foo, bar]", limited.toString());
      }
    
      public void testLimit_illegalArgument() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/OrderingTest.java

        Integer foo = new Integer(Integer.MAX_VALUE - 10);
        Integer bar = new Integer(Integer.MAX_VALUE - 10);
    
        assertNotSame(foo, bar);
        assertEquals(foo, bar);
    
        List<Integer> list = Arrays.asList(3, foo, bar, -1);
        List<Integer> result = numberOrdering.leastOf(list, list.size());
        assertEquals(ImmutableList.of(-1, 3, foo, bar), result);
      }
    
      public void testLeastOfIterator_ties() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.5K bytes
    - Viewed (0)
Back to top