Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for prepended (0.16 sec)

  1. guava-tests/test/com/google/common/collect/SetsTest.java

        out.writeObject(original);
    
        byte[] handle = toByteArray(baseWireHandle + handleOffset);
        byte[] ref = prepended(TC_REFERENCE, handle);
        bos.write(ref);
    
        return bos.toByteArray();
      }
    
      private static byte[] prepended(byte b, byte[] array) {
        byte[] out = new byte[array.length + 1];
        out[0] = b;
        System.arraycopy(array, 0, out, 1, array.length);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SetsTest.java

        out.writeObject(original);
    
        byte[] handle = toByteArray(baseWireHandle + handleOffset);
        byte[] ref = prepended(TC_REFERENCE, handle);
        bos.write(ref);
    
        return bos.toByteArray();
      }
    
      private static byte[] prepended(byte b, byte[] array) {
        byte[] out = new byte[array.length + 1];
        out[0] = b;
        System.arraycopy(array, 0, out, 1, array.length);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.9K bytes
    - Viewed (1)
  3. android/guava/src/com/google/common/reflect/Invokable.java

        }
    
        /**
         * {@inheritDoc}
         *
         * <p>{@code [<E>]} will be returned for ArrayList's constructor. When both the class and the
         * constructor have type parameters, the class parameters are prepended before those of the
         * constructor's. This is an arbitrary rule since no existing language spec mandates one way or
         * the other. From the declaration syntax, the class type parameter appears first, but the call
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Comparators.java

        return new LexicographicalOrdering<S>(checkNotNull(comparator));
      }
    
      /**
       * Returns {@code true} if each element in {@code iterable} after the first is greater than or
       * equal to the element that preceded it, according to the specified comparator. Note that this is
       * always true when the iterable has fewer than two elements.
       */
      public static <T extends @Nullable Object> boolean isInOrder(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

            LockGraphNode preAcquiredLock = entry.getKey();
            found = preAcquiredLock.findPathTo(node, seen);
            if (found != null) {
              // One of this node's allowedPriorLocks found a path. Prepend an
              // ExampleStackTrace(preAcquiredLock, this) to the returned chain of
              // ExampleStackTraces.
              ExampleStackTrace path = new ExampleStackTrace(preAcquiredLock, this);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/InvokableTest.java

        Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class);
        Prepender prepender = delegate.invoke(null, "a", 1);
        assertEquals("a", prepender.prefix);
        assertEquals(1, prepender.times);
      }
    
      public void testConstructor_returning() throws Exception {
        Invokable<?, Prepender> delegate =
            Prepender.constructor(String.class, int.class).returning(Prepender.class);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 30.9K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java

       * Object#toString}.
       */
      NON_STANDARD_TOSTRING,
    
      /**
       * Indicates that the constructor or factory method of a collection, usually an immutable set,
       * throws an {@link IllegalArgumentException} when presented with duplicate elements instead of
       * collapsing them to a single element or including duplicate instances in the collection.
       */
      REJECTS_DUPLICATES_AT_CREATION,
    
      SUPPORTS_ADD,
      SUPPORTS_REMOVE,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ObjectArrays.java

        System.arraycopy(second, 0, result, first.length, second.length);
        return result;
      }
    
      /**
       * Returns a new array that prepends {@code element} to {@code array}.
       *
       * @param element the element to prepend to the front of {@code array}
       * @param array the array of elements to append
       * @return an array whose size is one larger than {@code array}, with {@code element} occupying
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 12 15:59:22 GMT 2023
    - 9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

        for (Waiter currentWaiter = head; currentWaiter != null; currentWaiter = currentWaiter.next) {
          currentWaiter.unpark();
        }
      }
    
      /**
       * Clears the {@link #listeners} list and prepends its contents to {@code onto}, least recently
       * added first.
       */
      @CheckForNull
      private Listener clearListeners(@CheckForNull Listener onto) {
        // We need to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/features/MapFeature.java

      SUPPORTS_PUT,
      SUPPORTS_REMOVE,
      FAILS_FAST_ON_CONCURRENT_MODIFICATION,
      /**
       * Indicates that the constructor or factory method of a map, usually an immutable map, throws an
       * {@link IllegalArgumentException} when presented with duplicate keys instead of discarding all
       * but one.
       */
      REJECTS_DUPLICATES_AT_CREATION,
    
      GENERAL_PURPOSE(SUPPORTS_PUT, SUPPORTS_REMOVE);
    
      private final Set<Feature<? super Map>> implied;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3K bytes
    - Viewed (0)
Back to top