Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 200 for cast1 (0.02 sec)

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

            this.holder = t;
          }
    
          @Override
          public boolean tryAdvance(Consumer<? super R> action) {
            if (fromSpliterator.tryAdvance(this)) {
              try {
                // The cast is safe because tryAdvance puts a T into `holder`.
                action.accept(function.apply(uncheckedCastNullableTToT(holder), index++));
                return true;
              } finally {
                holder = null;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

          Comparator<? super E> comparator, Iterable<? extends E> elements) {
        if (elements instanceof ImmutableSortedMultiset) {
          @SuppressWarnings("unchecked") // immutable collections are always safe for covariant casts
          ImmutableSortedMultiset<E> multiset = (ImmutableSortedMultiset<E>) elements;
          if (comparator.equals(multiset.comparator())) {
            if (multiset.isPartialView()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Longs.java

       */
      public static byte[] toByteArray(long value) {
        // Note that this code needs to stay compatible with GWT, which has known
        // bugs when narrowing byte casts of long values occur.
        byte[] result = new byte[8];
        for (int i = 7; i >= 0; i--) {
          result[i] = (byte) (value & 0xffL);
          value >>= 8;
        }
        return result;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/Longs.java

       */
      public static byte[] toByteArray(long value) {
        // Note that this code needs to stay compatible with GWT, which has known
        // bugs when narrowing byte casts of long values occur.
        byte[] result = new byte[8];
        for (int i = 7; i >= 0; i--) {
          result[i] = (byte) (value & 0xffL);
          value >>= 8;
        }
        return result;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 29K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Ordering.java

       *
       * <p>The returned comparator is serializable.
       *
       * <p><b>Java 8+ users:</b> Use the lambda expression {@code (a, b) -> 0} instead (in certain
       * cases you may need to cast that to {@code Comparator<YourType>}).
       *
       * @since 13.0
       */
      @GwtCompatible(serializable = true)
      public static Ordering<@Nullable Object> allEqual() {
        return AllEqualOrdering.INSTANCE;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        }
    
        void testIsOrdered() {
          assertTrue(ordering.isOrdered(strictlyOrderedList));
          assertTrue(ordering.isStrictlyOrdered(strictlyOrderedList));
        }
    
        // generic arrays and unchecked cast
        void testMinAndMax() {
          List<T> shuffledList = Lists.newArrayList(strictlyOrderedList);
          shuffledList = shuffledCopy(shuffledList, new Random(5));
    
          T min = strictlyOrderedList.get(0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/OrderingTest.java

        }
    
        void testIsOrdered() {
          assertTrue(ordering.isOrdered(strictlyOrderedList));
          assertTrue(ordering.isStrictlyOrdered(strictlyOrderedList));
        }
    
        // generic arrays and unchecked cast
        void testMinAndMax() {
          List<T> shuffledList = Lists.newArrayList(strictlyOrderedList);
          shuffledList = shuffledCopy(shuffledList, new Random(5));
    
          T min = strictlyOrderedList.get(0);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Ordering.java

       *
       * <p>The returned comparator is serializable.
       *
       * <p><b>Java 8+ users:</b> Use the lambda expression {@code (a, b) -> 0} instead (in certain
       * cases you may need to cast that to {@code Comparator<YourType>}).
       *
       * @since 13.0
       */
      @GwtCompatible(serializable = true)
      public static Ordering<@Nullable Object> allEqual() {
        return AllEqualOrdering.INSTANCE;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Lists.java

        RandomAccessListWrapper(List<E> backingList) {
          super(backingList);
        }
      }
    
      /** Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557 */
      static <T extends @Nullable Object> List<T> cast(Iterable<T> iterable) {
        return (List<T>) iterable;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/net/InetAddresses.java

        checkArgument(
            bytes.length == 4,
            "Byte array has invalid length for an IPv4 address: %s != 4.",
            bytes.length);
    
        // Given a 4-byte array, this cast should always succeed.
        return (Inet4Address) bytesToInetAddress(bytes, null);
      }
    
      /**
       * Returns the {@link InetAddress} having the given string representation.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
Back to top