Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 143 for Optional (0.22 sec)

  1. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

          return new Chopper() {
            @Override
            Optional<String> chop(String str) {
              return i.chop(str).or(you.chop(str));
            }
          };
        }
    
        abstract Optional<String> chop(String str);
    
        static Chopper suffix(String suffix) {
          return new Chopper() {
            @Override
            Optional<String> chop(String str) {
              if (str.endsWith(suffix)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  2. android/guava/pom.xml

                </Export-Package>
                <Import-Package>
                  com.google.common.util.concurrent.internal,
                  javax.annotation;resolution:=optional,
                  javax.crypto.*;resolution:=optional,
                  sun.misc.*;resolution:=optional
                </Import-Package>
                <Bundle-DocURL>https://github.com/google/guava/</Bundle-DocURL>
              </instructions>
            </configuration>
    XML
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 11 16:37:45 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/HashMultimap.java

     *
     * <p>The multimap does not store duplicate key-value pairs. Adding a new key-value pair equal to an
     * existing key-value pair has no effect.
     *
     * <p>Keys and values may be null. All optional multimap methods are supported, and all returned
     * views are modifiable.
     *
     * <p>This class is not threadsafe when any concurrent operations update the multimap. Concurrent
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/TempFileCreator.java

            Class<?> processHandleInfoClass = Class.forName("java.lang.ProcessHandle$Info");
            Class<?> optionalClass = Class.forName("java.util.Optional");
            /*
             * We don't *need* to use reflection to access Optional: It's available on all JDKs we
             * support, and Android code won't get this far, anyway, because ProcessHandle is
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/StandardSystemProperty.java

       * properties, including:
       *
       * <ul>
       *   <li>{@code java.vendor.version} (added in Java 11, listed as optional as of Java 13)
       *   <li>{@code jdk.module.*} (added in Java 9, optional)
       * </ul>
       */
      @CheckForNull
      public String value() {
        return System.getProperty(key);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/MoreObjects.java

       * Predicates.notNull())}, static importing as necessary.
       *
       * <p><b>Note:</b> if {@code first} is represented as an {@link Optional}, this can be
       * accomplished with {@link Optional#or(Object) first.or(second)}. That approach also allows for
       * lazy evaluation of the fallback instance, using {@link Optional#or(Supplier)
       * first.or(supplier)}.
       *
       * <p><b>Java 9 users:</b> use {@code java.util.Objects.requireNonNullElse(first, second)}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/features/MapFeature.java

    import java.lang.annotation.Inherited;
    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.util.Map;
    import java.util.Set;
    
    /**
     * Optional features of classes derived from {@code Map}.
     *
     * @author George van den Driessche
     */
    @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package?
    @GwtCompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

      }
    
      abstract ObjectCountHashMap<E> newBackingMap(int distinctElements);
    
      @Override
      public final int count(@CheckForNull Object element) {
        return backingMap.get(element);
      }
    
      // Optional Operations - Modification Operations
    
      /**
       * {@inheritDoc}
       *
       * @throws IllegalArgumentException if the call would result in more than {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 8.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ArrayListMultimap.java

     * existing key-value pair, the {@code ArrayListMultimap} will contain entries for both the new
     * value and the old value.
     *
     * <p>Keys and values may be null. All optional multimap methods are supported, and all returned
     * views are modifiable.
     *
     * <p>The lists returned by {@link #get}, {@link #removeAll}, and {@link #replaceValues} all
     * implement {@link java.util.RandomAccess}.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(TimeUnit.class, TimeUnit.SECONDS)
              .put(Charset.class, Charsets.UTF_8)
              .put(Currency.class, Currency.getInstance(Locale.US))
              .put(Locale.class, Locale.US)
              .put(Optional.class, Optional.empty())
              .put(OptionalInt.class, OptionalInt.empty())
              .put(OptionalLong.class, OptionalLong.empty())
              .put(OptionalDouble.class, OptionalDouble.empty())
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 21K bytes
    - Viewed (1)
Back to top