Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 169 for CAST (0.03 sec)

  1. guava/src/com/google/common/collect/CompactHashMap.java

          }
        }
    
        @Override
        @ParametricNullness
        public V getValue() {
          Map<K, V> delegate = delegateOrNull();
          if (delegate != null) {
            /*
             * The cast is safe because the entry is present in the map. Or, if it has been removed by a
             * concurrent modification, behavior is undefined.
             */
            return uncheckedCastNullableTToT(delegate.get(key));
          }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  2. impl/maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultMavenPluginManager.java

                services.forEach((itf, svc) -> injector.bindSupplier((Class<Service>) itf, (Supplier<Service>) svc));
    
                mojo = mojoInterface.cast(injector.getInstance(
                        Key.of(mojoDescriptor.getImplementationClass(), mojoDescriptor.getRoleHint())));
    
            } catch (Exception e) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Dec 09 16:35:21 UTC 2025
    - 46.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSet.java

           * or ImmutableEnumSet<E> along the way because our own <E> isn't <E extends Enum<E>>.
           *
           * We are also performing a safe covariant cast to change <? extends E> to <E>.
           */
          @SuppressWarnings("unchecked")
          ImmutableSet<E> result = (ImmutableSet<E>) untypedResult;
          return result;
        }
    
        if (elements.isEmpty()) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Nov 07 16:09:47 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

            if (modelCache != null) {
                Object data = modelCache.get(groupId, artifactId, version, tag.getName());
                if (data != null) {
                    return tag.fromCache(tag.getType().cast(data));
                }
            }
            return null;
        }
    
        private void fireEvent(
                Model model,
                ModelBuildingRequest request,
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Sun Mar 30 23:08:08 UTC 2025
    - 55.3K bytes
    - Viewed (0)
  5. 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 36.4K bytes
    - Viewed (0)
  6. 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
       */
      public static Ordering<@Nullable Object> allEqual() {
        return AllEqualOrdering.INSTANCE;
      }
    
      /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  7. 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 = new ArrayList<>(strictlyOrderedList);
          shuffledList = shuffledCopy(shuffledList, new Random(5));
    
          T min = strictlyOrderedList.get(0);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 42.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CompactHashMap.java

          }
        }
    
        @Override
        @ParametricNullness
        public V getValue() {
          Map<K, V> delegate = delegateOrNull();
          if (delegate != null) {
            /*
             * The cast is safe because the entry is present in the map. Or, if it has been removed by a
             * concurrent modification, behavior is undefined.
             */
            return uncheckedCastNullableTToT(delegate.get(key));
          }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 35.7K bytes
    - Viewed (0)
  9. 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 = new ArrayList<>(strictlyOrderedList);
          shuffledList = shuffledCopy(shuffledList, new Random(5));
    
          T min = strictlyOrderedList.get(0);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 10 23:13:45 UTC 2025
    - 42.8K 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 Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
Back to top