Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 3,650 for objTest (0.06 sec)

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

       * example using {@link Arrays#asList(Object[])}, making this method unnecessary.
       *
       * <p>The {@code Iterable} equivalent of this method is either {@link Arrays#asList(Object[])},
       * {@link ImmutableList#copyOf(Object[])}}, or {@link ImmutableList#of}.
       */
      @SafeVarargs
      public static <T extends @Nullable Object> UnmodifiableIterator<T> forArray(T... array) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  2. docs/debugging/hash-set/main.go

    				fmt.Printf("\t%s\n", s)
    			}
    		}
    		os.Exit(0)
    	}
    
    	if object == "" {
    		log.Fatalln("object name is mandatory")
    	}
    
    	if shards != 0 {
    		fmt.Println("Erasure distribution for the object", hashOrder(prefix+object, shards))
    	}
    	fmt.Println("Erasure setNumber for the object", sipHashMod(prefix+object, setCount, id)+1)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/RegularImmutableSet.java

      private static final Object[] EMPTY_ARRAY = new Object[0];
      static final RegularImmutableSet<Object> EMPTY =
          new RegularImmutableSet<>(EMPTY_ARRAY, 0, EMPTY_ARRAY, 0);
    
      private final transient Object[] elements;
      private final transient int hashCode;
      // the same values as `elements` in hashed positions (plus nulls)
      @VisibleForTesting final transient @Nullable Object[] table;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java

    public class ChainBenchmark {
    
      @Param({"1", "2", "3", "4", "5", "6"})
      int length;
    
      private Segment<Object, Object> segment;
      private ReferenceEntry<Object, Object> head;
      private @Nullable ReferenceEntry<Object, Object> chain;
    
      @SuppressWarnings("GuardedBy")
      @BeforeExperiment
      void setUp() {
        LocalCache<Object, Object> cache =
            new LocalCache<>(CacheBuilder.newBuilder().concurrencyLevel(1), null);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:19:38 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/MemoryUtil.java

                return 2128L;
            }
            if (obj instanceof Object[]) {
                long size = 0;
                for (final Object value : (Object[]) obj) {
                    size += sizeOf(value);
                }
                return size;
            }
            if (obj instanceof Collection<?>) {
                long size = 0;
                for (final Object value : (Collection<?>) obj) {
                    size += sizeOf(value);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    public final class MinimalIterable<E extends @Nullable Object> implements Iterable<E> {
      /** Returns an iterable whose iterator returns the given elements in order. */
      public static <E extends @Nullable Object> MinimalIterable<E> of(E... elements) {
        // Make sure to get an unmodifiable iterator
        return new MinimalIterable<>(asList(elements).iterator());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/lang/ObjectUtil.java

         * @param object2
         *            オブジェクト(<code>null</code>可)
         * @return 引数の2つのオブジェクトが等しい場合は<code>true</code>を返します。
         */
        public static boolean equals(final Object object1, final Object object2) {
            if (object1 == object2) {
                return true;
            }
            if (object1 == null || object2 == null) {
                return false;
            }
            return object1.equals(object2);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. android/guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

      }
    
      public void testAwaitClear() {
        final WeakReference<Object> ref = new WeakReference<>(new Object());
        GcFinalization.awaitClear(ref);
        assertNull(ref.get());
      }
    
      public void testAwaitDone_finalizationPredicate() {
        final WeakHashMap<Object, Object> map = new WeakHashMap<>();
        map.put(new Object(), Boolean.TRUE);
        GcFinalization.awaitDone(
            new FinalizationPredicate() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ForwardingSortedMap.java

          return false;
        }
      }
    
      /**
       * A sensible default implementation of {@link #subMap(Object, Object)} in terms of {@link
       * #headMap(Object)} and {@link #tailMap(Object)}. In some situations, you may wish to override
       * {@link #subMap(Object, Object)} to forward to this implementation.
       *
       * @since 7.0
       */
      protected SortedMap<K, V> standardSubMap(K fromKey, K toKey) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  10. cmd/metacache-walk.go

    	// Fast exit track to check if we are listing an object with
    	// a trailing slash, this will avoid to list the object content.
    	if HasSuffix(opts.BaseDir, SlashSeparator) {
    		metadata, err := s.readMetadata(ctx, pathJoin(volumeDir,
    			opts.BaseDir[:len(opts.BaseDir)-1]+globalDirSuffix,
    			xlStorageFormatFile))
    		diskHealthCheckOK(ctx, err)
    		if err == nil {
    			// if baseDir is already a directory object, consider it
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 01 05:17:37 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top