Tabnine Logo
Collections.unmodifiableCollection
Code IndexAdd Tabnine to your IDE (free)

How to use
unmodifiableCollection
method
in
java.util.Collections

Best Java code snippets using java.util.Collections.unmodifiableCollection (Showing top 20 results out of 19,863)

Refine searchRefine arrow

  • Map.values
  • Map.keySet
  • Collection.add
origin: spring-projects/spring-framework

/**
 * Return the managed {@link MessageListenerContainer} instance(s).
 */
public Collection<MessageListenerContainer> getListenerContainers() {
  return Collections.unmodifiableCollection(this.listenerContainers.values());
}
origin: baomidou/mybatis-plus

  /**
   * 使用自己的 knownMappers
   */
  @Override
  public Collection<Class<?>> getMappers() {
    return Collections.unmodifiableCollection(knownMappers.keySet());
  }
}
origin: plantuml/plantuml

public Collection<GraphicalElement> getAllGraphicalElements() {
  final Collection<GraphicalElement> result = new ArrayList<GraphicalElement>();
  for (Event ev : eventsList) {
    result.add(events.get(ev));
  }
  return Collections.unmodifiableCollection(result);
}
origin: peter-lawrey/Java-Chronicle

public MapWrapper(@NotNull DataStore dataStore, String name, @NotNull Class<K> kClass, @NotNull Class<V> vClass, @NotNull Map<K, V> underlying, int maxMessageSize) {
  this.dataStore = dataStore;
  this.name = name;
  this.kClass = kClass;
  this.vClass = vClass;
  this.underlying = underlying;
  this.maxMessageSize = maxMessageSize;
  kEnumClass = dataStore.enumeratedClass(kClass);
  vEnumClass = dataStore.enumeratedClass(vClass);
  keySet = Collections.unmodifiableSet(underlying.keySet());
  values = Collections.unmodifiableCollection(underlying.values());
  entrySet = Collections.unmodifiableSet(underlying.entrySet());
  dataStore.add(name, this);
}
origin: com.sun.xml.bind/jaxb-impl

  @Override
  public Collection<QName> getExpectedAttributes() {
    final Collection<QName> expAttrs =  new HashSet<QName>();
    expAttrs.addAll(super.getExpectedAttributes());
    expAttrs.add(XsiTypeQNAME);
    return Collections.unmodifiableCollection(expAttrs);
  }
}
origin: apache/incubator-dubbo

/**
 * Get all registries
 *
 * @return all registries
 */
public static Collection<Registry> getRegistries() {
  return Collections.unmodifiableCollection(REGISTRIES.values());
}
origin: jersey/jersey

@Override
public Collection<String> getPropertyNames() {
  return Collections.unmodifiableCollection(store.keySet());
}
origin: apache/ignite

/**
 * Allowed method return types.
 *
 * @return List of class names or text comments.
 */
public static Collection<String> getAllowedMethodParameterTypes() {
  Collection<String> types = new ArrayList<>(ALLOWED_MTD_PARAM_TYPES.length + 1);
  for (Class<?> type : ALLOWED_MTD_PARAM_TYPES) {
    types.add(type.getName());
  }
  types.add("Java Array");
  return Collections.unmodifiableCollection(types);
}
origin: plantuml/plantuml

public final Collection<IGroup> getGroups(boolean withRootGroup) {
  if (withRootGroup == false) {
    return entityFactory.getGroupsvalues();
  }
  final Collection<IGroup> result = new ArrayList<IGroup>();
  result.add(getRootGroup());
  result.addAll(entityFactory.getGroupsvalues());
  return Collections.unmodifiableCollection(result);
}
origin: apache/incubator-dubbo

/**
 * Get all registries
 *
 * @return all registries
 */
public static Collection<Registry> getRegistries() {
  return Collections.unmodifiableCollection(REGISTRIES.values());
}
origin: jersey/jersey

@Override
public Collection<String> getPropertyNames() {
  return Collections.unmodifiableCollection(store.keySet());
}
origin: apache/ignite

  /**
   * Converts List of Cluster Nodes to HashSet of UUIDs wrapped as unmodifiable collection.
   * @param assignmentPart Source assignment per partition.
   * @return List of deduplicated collections if ClusterNode's ids.
   */
  public default Collection<UUID> assignments2ids(List<ClusterNode> assignmentPart) {
    Collection<UUID> partIds = U.newHashSet(assignmentPart.size());

    for (ClusterNode node : assignmentPart)
      partIds.add(node.id());

    return Collections.unmodifiableCollection(partIds);
  }
}
origin: spring-projects/spring-framework

public Collection<Object> values() {
  return Collections.unmodifiableCollection(this.headers.values());
}
origin: jMonkeyEngine/jmonkeyengine

public Collection<String> getAnimClipsNames() {
  return Collections.unmodifiableCollection(animClipMap.keySet());
}
origin: plantuml/plantuml

final public Collection<IGroup> getChildrenGroups(IGroup parent) {
  final Collection<IGroup> result = new ArrayList<IGroup>();
  for (IGroup gg : getGroups(false)) {
    if (gg.getParentContainer() == parent) {
      result.add(gg);
    }
  }
  return Collections.unmodifiableCollection(result);
}
origin: apache/incubator-dubbo

public static Collection<Monitor> getMonitors() {
  return Collections.unmodifiableCollection(MONITORS.values());
}
origin: wildfly/wildfly

/**
 * Iterate over the options in this map.
 *
 * @return an iterator over the options
 */
public Iterator<Option<?>> iterator() {
  return Collections.unmodifiableCollection(value.keySet()).iterator();
}
origin: plantuml/plantuml

public Collection<IGroup> getChildren() {
  checkGroup();
  final Collection<IGroup> result = new ArrayList<IGroup>();
  for (IGroup g : entityFactory.getGroupsvalues()) {
    if (g != this && g.getParentContainer() == this) {
      result.add(g);
    }
  }
  return Collections.unmodifiableCollection(result);
}
origin: apache/incubator-dubbo

Collection<JavaFileObject> files() {
  return Collections.unmodifiableCollection(classes.values());
}
origin: plantuml/plantuml

public Collection<ANode> getNodes() {
  return Collections.unmodifiableCollection(nodesCols.keySet());
}
java.utilCollectionsunmodifiableCollection

Javadoc

Returns a wrapper on the specified collection which throws an UnsupportedOperationException whenever an attempt is made to modify the collection.

Popular methods of Collections

  • emptyList
    Returns the empty list (immutable). This list is serializable.This example illustrates the type-safe
  • sort
  • singletonList
    Returns an immutable list containing only the specified object. The returned list is serializable.
  • unmodifiableList
    Returns an unmodifiable view of the specified list. This method allows modules to provide users with
  • emptyMap
    Returns the empty map (immutable). This map is serializable.This example illustrates the type-safe w
  • emptySet
    Returns the empty set (immutable). This set is serializable. Unlike the like-named field, this metho
  • unmodifiableMap
    Returns an unmodifiable view of the specified map. This method allows modules to provide users with
  • singleton
    Returns an immutable set containing only the specified object. The returned set is serializable.
  • unmodifiableSet
    Returns an unmodifiable view of the specified set. This method allows modules to provide users with
  • singletonMap
    Returns an immutable map, mapping only the specified key to the specified value. The returned map is
  • addAll
    Adds all of the specified elements to the specified collection. Elements to be added may be specifie
  • reverse
    Reverses the order of the elements in the specified list. This method runs in linear time.
  • addAll,
  • reverse,
  • shuffle,
  • enumeration,
  • list,
  • synchronizedMap,
  • synchronizedList,
  • reverseOrder,
  • emptyIterator

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • getExternalFilesDir (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now