Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 98 for mutable_s (0.27 sec)

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

              suite.addTest(new GeneratedMonitorTest(method, scenario, fair, null, expectedOutcome));
            }
          }
        }
      }
    
      /** A guard that encapsulates a simple, mutable boolean flag. */
      static class FlagGuard extends Monitor.Guard {
    
        private boolean satisfied;
    
        protected FlagGuard(Monitor monitor) {
          super(monitor);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:18:12 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

              suite.addTest(new GeneratedMonitorTest(method, scenario, fair, null, expectedOutcome));
            }
          }
        }
      }
    
      /** A guard that encapsulates a simple, mutable boolean flag. */
      static class FlagGuard extends Monitor.Guard {
    
        private boolean satisfied;
    
        protected FlagGuard(Monitor monitor) {
          super(monitor);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Range.java

     *   <li>{@code (a..a)} : <b>invalid</b>; an exception will be thrown
     * </ul>
     *
     * <h3>Warnings</h3>
     *
     * <ul>
     *   <li>Use immutable value types only, if at all possible. If you must use a mutable type, <b>do
     *       not</b> allow the endpoint instances to mutate after the range is created!
     *   <li>Your value type's comparison method should be {@linkplain Comparable consistent with
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

            .add("services", Collections2.filter(services, not(instanceOf(NoOpService.class))))
            .toString();
      }
    
      /**
       * An encapsulation of all the mutable state of the {@link ServiceManager} that needs to be
       * accessed by instances of {@link ServiceListener}.
       */
      private static final class ServiceManagerState {
        final Monitor monitor = new Monitor();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/ServiceManager.java

            .add("services", Collections2.filter(services, not(instanceOf(NoOpService.class))))
            .toString();
      }
    
      /**
       * An encapsulation of all the mutable state of the {@link ServiceManager} that needs to be
       * accessed by instances of {@link ServiceListener}.
       */
      private static final class ServiceManagerState {
        final Monitor monitor = new Monitor();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

      @IgnoreJRERequirement
      public IntStream stream() {
        return Arrays.stream(array, start, end);
      }
    
      /** Returns a new, mutable copy of this array's values, as a primitive {@code int[]}. */
      public int[] toArray() {
        return Arrays.copyOfRange(array, start, end);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Range.java

     *   <li>{@code (a..a)} : <b>invalid</b>; an exception will be thrown
     * </ul>
     *
     * <h3>Warnings</h3>
     *
     * <ul>
     *   <li>Use immutable value types only, if at all possible. If you must use a mutable type, <b>do
     *       not</b> allow the endpoint instances to mutate after the range is created!
     *   <li>Your value type's comparison method should be {@linkplain Comparable consistent with
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

      @IgnoreJRERequirement
      public DoubleStream stream() {
        return Arrays.stream(array, start, end);
      }
    
      /** Returns a new, mutable copy of this array's values, as a primitive {@code double[]}. */
      public double[] toArray() {
        return Arrays.copyOfRange(array, start, end);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 23K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableBiMap.java

            return of(entry.getKey(), entry.getValue());
          default:
            /*
             * The current implementation will end up using entryArray directly, though it will write
             * over the (arbitrary, potentially mutable) Entry objects actually stored in entryArray.
             */
            return RegularImmutableBiMap.fromEntries(entryArray);
        }
      }
    
      ImmutableBiMap() {}
    
      /**
       * {@inheritDoc}
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/FluentIterable.java

       * corresponding to each key appear in the same order as they are encountered.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code stream.collect(Collectors.groupingBy(keyFunction))}
       * behaves similarly, but returns a mutable {@code Map<K, List<E>>} instead, and may not preserve
       * the order of entries.
       *
       * @param keyFunction the function used to produce the key for each value
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
Back to top