Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 64 for HOLDER (0.06 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

      public void testTransformValueRemainsMemoized() throws Exception {
        class Holder {
    
          int value = 2;
        }
        Holder holder = new Holder();
    
        // This function adds the holder's value to the input value.
        Function<Integer, Integer> adder = from -> from + holder.value;
    
        // Since holder.value is 2, applying 4 should yield 6.
        assertEquals(6, adder.apply(4).intValue());
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 134K bytes
    - Click Count (0)
  2. guava/src/com/google/common/base/Suppliers.java

        public T get() {
          // Another variant of Double Checked Locking.
          //
          // We use two volatile reads. We could reduce this to one by
          // putting our fields into a holder class, but (at least on x86)
          // the extra memory consumption and indirection are more
          // expensive than the extra volatile reads.
          long nanos = expirationNanos;
          long now = System.nanoTime();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 21:24:28 GMT 2026
    - 16.1K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/base/Suppliers.java

        public T get() {
          // Another variant of Double Checked Locking.
          //
          // We use two volatile reads. We could reduce this to one by
          // putting our fields into a holder class, but (at least on x86)
          // the extra memory consumption and indirection are more
          // expensive than the extra volatile reads.
          long nanos = expirationNanos;
          long now = System.nanoTime();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 21:24:28 GMT 2026
    - 16.1K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/base/Optional.java

      @IgnoreJRERequirement
      public java.util.Optional<T> toJavaUtil() {
        return java.util.Optional.ofNullable(orNull());
      }
    
      Optional() {}
    
      /**
       * Returns {@code true} if this holder contains a (non-null) instance.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> no differences.
       */
      public abstract boolean isPresent();
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 15.4K bytes
    - Click Count (0)
  5. guava/src/com/google/common/base/Optional.java

      public java.util.Optional<T> toJavaUtil() {
        return java.util.Optional.ofNullable(orNull());
      }
    
      Optional() {}
    
      /**
       * Returns {@code true} if this holder contains a (non-null) instance.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> no differences.
       */
      public abstract boolean isPresent();
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/dcerpc/msrpc/netdfs.java

             * @param level the information level
             * @param prefmaxlen the preferred maximum length
             * @param info the enumeration structure
             * @param totalentries holder for total entries count
             */
            public NetrDfsEnumEx(final String dfs_name, final int level, final int prefmaxlen, final DfsEnumStruct info,
                    final NdrLong totalentries) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  7. CREDITS

    license from a particular copyright holder is reinstated (a)
    provisionally, unless and until the copyright holder explicitly and
    finally terminates your license, and (b) permanently, if the copyright
    holder fails to notify you of the violation by some reasonable means
    prior to 60 days after the cessation.
    
      Moreover, your license from a particular copyright holder is
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Mar 13 05:29:51 GMT 2025
    - 1.8M bytes
    - Click Count (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/PluginUpgradeStrategy.java

            final String artifactId;
    
            /** The minimum version required for Maven 4 compatibility */
            final String minVersion;
    
            /**
             * Creates a new plugin upgrade information holder.
             *
             * @param groupId the Maven groupId of the plugin
             * @param artifactId the Maven artifactId of the plugin
             * @param minVersion the minimum version required for Maven 4 compatibility
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Nov 18 18:03:26 GMT 2025
    - 37K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/primitives/Longs.java

            | (b4 & 0xFFL) << 32
            | (b5 & 0xFFL) << 24
            | (b6 & 0xFFL) << 16
            | (b7 & 0xFFL) << 8
            | (b8 & 0xFFL);
      }
    
      /*
       * Moving asciiDigits into this static holder class lets ProGuard eliminate and inline the Longs
       * class.
       */
      static final class AsciiDigits {
        private AsciiDigits() {}
    
        private static final byte[] asciiDigits;
    
        static {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 29K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/cache/CacheBuilder.java

          return 1;
        }
      }
    
      static final Ticker NULL_TICKER =
          new Ticker() {
            @Override
            public long read() {
              return 0;
            }
          };
    
      // We use a holder class to delay initialization: https://github.com/google/guava/issues/6566
      private static final class LoggerHolder {
        static final Logger logger = Logger.getLogger(CacheBuilder.class.getName());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 52K bytes
    - Click Count (0)
Back to Top