Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for nilable (0.14 sec)

  1. android/guava/src/com/google/common/collect/Platform.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Methods factored out so that they can be emulated differently in GWT.
     *
     * @author Hayward Chan
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    final class Platform {
      /** Returns the platform preferred implementation of a map based on a hash table. */
      static <K extends @Nullable Object, V extends @Nullable Object>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/base/super/com/google/common/base/Platform.java

      }
    
      @JsMethod
      static native boolean stringIsNullOrEmpty(@Nullable String string) /*-{
        return !string;
      }-*/;
    
      @JsMethod
      static native String nullToEmpty(@Nullable String string) /*-{
        return string || "";
      }-*/;
    
      @JsMethod
      static native String emptyToNull(@Nullable String string) /*-{
        return string || null;
      }-*/;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 17:58:45 GMT 2023
    - 2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Platform.java

        WeakReference<? extends Enum<?>> ref = Enums.getEnumConstants(enumClass).get(value);
        /*
         * We use `fromNullable` instead of `of` because `WeakReference.get()` has a nullable return
         * type.
         *
         * In practice, we are very unlikely to see `null`: The `WeakReference` to the enum constant
         * won't be cleared as long as the enum constant is referenced somewhere, and the enum constant
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java

    import jsinterop.annotations.JsMethod;
    import jsinterop.annotations.JsPackage;
    import jsinterop.annotations.JsProperty;
    import jsinterop.annotations.JsType;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Minimal GWT emulation of {@code com.google.common.collect.Platform}.
     *
     * @author Hayward Chan
     */
    final class Platform {
      static <K, V> Map<K, V> newHashMapWithExpectedSize(int expectedSize) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 29 18:16:45 GMT 2023
    - 4.7K bytes
    - Viewed (0)
Back to top