Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for unmodifiableCollection (0.28 sec)

  1. guava-testlib/src/com/google/common/testing/ClusterException.java

            exceptions.iterator().next());
        ArrayList<? extends Throwable> temp = new ArrayList<>(exceptions);
        this.exceptions = Collections.unmodifiableCollection(temp);
      }
    
      /** See {@link #create(Collection)}. */
      static RuntimeException create(Throwable... exceptions) {
        ArrayList<Throwable> temp = new ArrayList<>(Arrays.asList(exceptions));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ForwardingObject.java

     * object being tested, but the reverse could not be true. This behavior is consistent with the
     * JDK's collection wrappers, such as {@link java.util.Collections#unmodifiableCollection}. Use an
     * interface-specific subclass of {@code ForwardingObject}, such as {@link ForwardingList}, to
     * preserve equality behavior, or override {@code equals} directly.
     *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multimaps.java

          } else if (collection instanceof List) {
            return Collections.unmodifiableList((List<E>) collection);
          } else {
            return Collections.unmodifiableCollection(collection);
          }
        }
    
        @Override
        Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) {
          if (collection instanceof List) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ForwardingObject.java

     * object being tested, but the reverse could not be true. This behavior is consistent with the
     * JDK's collection wrappers, such as {@link java.util.Collections#unmodifiableCollection}. Use an
     * interface-specific subclass of {@code ForwardingObject}, such as {@link ForwardingList}, to
     * preserve equality behavior, or override {@code equals} directly.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/ClusterException.java

            exceptions.iterator().next());
        ArrayList<? extends Throwable> temp = new ArrayList<>(exceptions);
        this.exceptions = Collections.unmodifiableCollection(temp);
      }
    
      /** See {@link #create(Collection)}. */
      static RuntimeException create(Throwable... exceptions) {
        ArrayList<Throwable> temp = new ArrayList<>(Arrays.asList(exceptions));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        return unmodifiableCollectionSubclass(output);
      }
    
      <E extends @Nullable Object> Collection<E> unmodifiableCollectionSubclass(
          Collection<E> collection) {
        return Collections.unmodifiableCollection(collection);
      }
    
      @Override
      public void clear() {
        // Clear each collection, to make previously returned collections empty.
        for (Collection<V> collection : map.values()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 46.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableCollection.java

     *
     * <ul>
     *   <li><b>Shallow immutability.</b> Elements can never be added, removed or replaced in this
     *       collection. This is a stronger guarantee than that of {@link
     *       Collections#unmodifiableCollection}, whose contents change whenever the wrapped collection
     *       is modified.
     *   <li><b>Null-hostility.</b> This collection will never contain a null element.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 18.7K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/collect/ImmutableCollection.java

     *
     * <ul>
     *   <li><b>Shallow immutability.</b> Elements can never be added, removed or replaced in this
     *       collection. This is a stronger guarantee than that of {@link
     *       Collections#unmodifiableCollection}, whose contents change whenever the wrapped collection
     *       is modified.
     *   <li><b>Null-hostility.</b> This collection will never contain a null element.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Tables.java

          return Collections.unmodifiableMap(Maps.transformValues(super.rowMap(), wrapper));
        }
    
        @Override
        public Collection<V> values() {
          return Collections.unmodifiableCollection(super.values());
        }
    
        private static final long serialVersionUID = 0;
      }
    
      /**
       * Returns an unmodifiable view of the specified row-sorted table. This method allows modules to
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 04 22:45:41 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      private static class GenericClass<T> {
        private interface Base {}
      }
    
      private static IterableSubject makeUnmodifiable(Collection<?> actual) {
        return assertThat(Collections.<Object>unmodifiableCollection(actual));
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
Back to top