Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 549 for pnum (0.59 sec)

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

    import java.util.ListIterator;
    import java.util.Set;
    
    /**
     * A method supported by implementations of the {@link Iterator} or {@link ListIterator} interface.
     *
     * <p>This enum is GWT compatible.
     *
     * @author Chris Povirk
     */
    @GwtCompatible
    public enum IteratorFeature {
      /** Support for {@link Iterator#remove()}. */
      SUPPORTS_REMOVE,
      /**
       * Support for {@link ListIterator#add(Object)}; ignored for plain {@link Iterator}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 03 18:22:43 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

            int num = RANDOM.nextInt(10);
            for (int i = 0; i < num; i++) {
              list.add(counter.getAndIncrement());
            }
            builder.addAll(list);
          }
        },
        ADD_ITERABLE {
          @Override
          void doIt(ImmutableIntArray.Builder builder, AtomicInteger counter) {
            List<Integer> list = new ArrayList<>();
            int num = RANDOM.nextInt(10);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        },
        ADD_COLLECTION {
          @Override
          void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter) {
            List<Double> list = new ArrayList<>();
            double num = RANDOM.nextInt(10);
            for (int i = 0; i < num; i++) {
              list.add((double) counter.getAndIncrement());
            }
            builder.addAll(list);
          }
        },
        ADD_ITERABLE {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/util/concurrent/FuturesGetCheckedBenchmark.java

          this.validator = validator;
        }
      }
    
      private enum Result {
        SUCCESS(immediateFuture(new Object())),
        FAILURE(immediateFailedFuture(new Exception()));
    
        final Future<Object> future;
    
        Result(Future<Object> result) {
          this.future = result;
        }
      }
    
      private enum ExceptionType {
        CHECKED(IOException.class),
        UNCHECKED(RuntimeException.class);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 22 03:01:34 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/collect/StreamsBenchmark.java

      private int size;
    
      enum CollectionType {
        ARRAY_LIST(ArrayList::new),
        LINKED_LIST(LinkedList::new);
    
        final Supplier<Collection<Object>> supplier;
    
        private CollectionType(Supplier<Collection<Object>> supplier) {
          this.supplier = supplier;
        }
      }
    
      @Param private CollectionType source;
    
      enum Operation {
        FIND_FIRST {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableEnumMap.java

    @GwtCompatible(serializable = true, emulated = true)
    @SuppressWarnings("serial") // we're overriding default serialization
    @ElementTypesAreNonnullByDefault
    final class ImmutableEnumMap<K extends Enum<K>, V> extends IteratorBasedImmutableMap<K, V> {
      static <K extends Enum<K>, V> ImmutableMap<K, V> asImmutable(EnumMap<K, V> map) {
        switch (map.size()) {
          case 0:
            return ImmutableMap.of();
          case 1:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

          }
        };
      }
    
      enum QueueImpl implements CollectionsImplEnum {
        MinMaxPriorityQueueImpl {
          @Override
          public <E extends Comparable<E>> Queue<E> create(Collection<E> contents) {
            return MinMaxPriorityQueue.create(contents);
          }
        };
      }
    
      enum TableImpl {
        HashBasedTableImpl {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. .teamcity/src/main/kotlin/common/Os.kt

     * limitations under the License.
     */
    
    package common
    
    enum class Arch(val suffix: String, val nameOnLinuxWindows: String, val nameOnMac: String) {
        AMD64("64bit", "amd64", "x86_64"),
        AARCH64("aarch64", "aarch64", "aarch64");
    
        fun asName() = name.lowercase().toCapitalized()
    }
    
    enum class Os(
        val agentRequirement: String,
        val androidHome: String,
        val jprofilerHome: String,
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Oct 11 18:32:33 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/path-params.md

    ### Create an `Enum` class
    
    Import `Enum` and create a sub-class that inherits from `str` and from `Enum`.
    
    By inheriting from `str` the API docs will be able to know that the values must be of type `string` and will be able to render correctly.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/path-params.md

    ### Crea una clase `Enum`
    
    Importa `Enum` y crea una sub-clase que herede desde `str` y desde `Enum`.
    
    Al heredar desde `str` la documentación de la API podrá saber que los valores deben ser de tipo `string` y podrá mostrarlos correctamente.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top