Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 245 for equivalent (0.06 sec)

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

       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this method is equivalent to Java 8's
       * {@code Optional.ofNullable}.
       */
      public static <T> Optional<T> fromNullable(@CheckForNull T nullableReference) {
        return (nullableReference == null) ? Optional.<T>absent() : new Present<T>(nullableReference);
      }
    
      /**
       * Returns the equivalent {@code com.google.common.base.Optional} value to the given {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/FluentIterable.java

       *
       * <p><b>{@code Stream} equivalent:</b> {@code Stream.empty()}.
       *
       * @since 20.0
       */
      public static <E extends @Nullable Object> FluentIterable<E> of() {
        return FluentIterable.from(Collections.<E>emptyList());
      }
    
      /**
       * Returns a fluent iterable containing the specified elements in order.
       *
       * <p><b>{@code Stream} equivalent:</b> {@link java.util.stream.Stream#of(Object[])
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        } catch (AssertionFailedError expected) {
          assertThat(expected.getMessage())
              .contains(
                  "TestObject{group=1, item=2} [group 1, item 2] must be equivalent to "
                      + "TestObject{group=1, item=1} [group 1, item 1]");
          return;
        }
        fail();
      }
    
      public void testTest_transitive() {
        Object group1Item1 = new TestObject(1, 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/EquivalenceTesterTest.java

        } catch (AssertionFailedError expected) {
          assertThat(expected.getMessage())
              .contains(
                  "TestObject{group=1, item=2} [group 1, item 2] must be equivalent to "
                      + "TestObject{group=1, item=1} [group 1, item 1]");
          return;
        }
        fail();
      }
    
      public void testTest_transitive() {
        Object group1Item1 = new TestObject(1, 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

      }
    
      protected void initMapWithNullKey() {
        resetMap(createArrayWithNullKey());
      }
    
      protected void initMapWithNullValue() {
        resetMap(createArrayWithNullValue());
      }
    
      /**
       * Equivalent to {@link #expectMissingKeys(Object[]) expectMissingKeys} {@code (null)} except that
       * the call to {@code contains(null)} is permitted to throw a {@code NullPointerException}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/AbstractCollectionTester.java

        return array;
      }
    
      protected void initCollectionWithNullElement() {
        E[] array = createArrayWithNullElement();
        resetContainer(getSubjectGenerator().create(array));
      }
    
      /**
       * Equivalent to {@link #expectMissing(Object[]) expectMissing}{@code (null)} except that the call
       * to {@code contains(null)} is permitted to throw a {@code NullPointerException}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/SortedLists.java

         *
         * <p>Note that the return value will be {@code >= 0} if and only if there is an element of the
         * list that compares as equal to the key.
         *
         * <p>This is equivalent to the behavior of {@link java.util.Collections#binarySearch(List,
         * Object)} when the key isn't present, since {@code ~insertionIndex} is equal to {@code -1 -
         * insertionIndex}.
         */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/Files.java

    @ElementTypesAreNonnullByDefault
    public final class Files {
    
      private Files() {}
    
      /**
       * Returns a buffered reader that reads from a file using the given character set.
       *
       * <p><b>{@link java.nio.file.Path} equivalent:</b> {@link
       * java.nio.file.Files#newBufferedReader(java.nio.file.Path, Charset)}.
       *
       * @param file the file to read from
       * @param charset the charset used to decode the input stream; see {@link StandardCharsets} for
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/Network.java

     * additional documentation, including:
     *
     * <ul>
     *   <li><a
     *       href="https://github.com/google/guava/wiki/GraphsExplained#equals-hashcode-and-graph-equivalence">
     *       {@code equals()}, {@code hashCode()}, and graph equivalence</a>
     *   <li><a href="https://github.com/google/guava/wiki/GraphsExplained#synchronization">
     *       Synchronization policy</a>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSortedSet.java

      }
    
      /**
       * Returns an immutable sorted set containing the given elements sorted by their natural ordering.
       * When multiple elements are equivalent according to {@link Comparable#compareTo}, only the first
       * one specified is included.
       *
       * @throws NullPointerException if any element is null
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
Back to top