Tabnine Logo
CollectionsExt.modifiableCopy
Code IndexAdd Tabnine to your IDE (free)

How to use
modifiableCopy
method
in
org.apache.sis.internal.util.CollectionsExt

Best Java code snippets using org.apache.sis.internal.util.CollectionsExt.modifiableCopy (Showing top 3 results out of 315)

origin: apache/sis

    snapshot = snapshot((List<?>) oldValue);
  } else {
    snapshot = modifiableCopy((Collection<?>) oldValue);
  snapshot = modifiableCopy((Map<?,?>) oldValue);
} else {
  snapshot = oldValue;
origin: org.apache.sis.core/sis-metadata

    snapshot = snapshot((List<?>) oldValue);
  } else {
    snapshot = modifiableCopy((Collection<?>) oldValue);
  snapshot = modifiableCopy((Map<?,?>) oldValue);
} else {
  snapshot = oldValue;
origin: apache/sis

value = CollectionsExt.modifiableCopy((Collection<?>) value); // Protect from changes.
org.apache.sis.internal.utilCollectionsExtmodifiableCopy

Javadoc

Copies the content of the given collection to a new, unsynchronized, modifiable, in-memory collection. The implementation class of the returned collection may be different than the class of the collection given in argument. The following table gives the types mapping applied by this method:
Implementations for types
Input type Output type
SortedSet TreeSet
HashSet HashSet
Set other than above LinkedHashSet
Queue LinkedList
List or other Collection ArrayList
This method may not preserve the org.apache.sis.util.collection.CheckedContainer interface.

Popular methods of CollectionsExt

  • singletonOrEmpty
    Returns the given value as a singleton if non-null, or returns an empty set otherwise.
  • unmodifiableOrCopy
    Returns a unmodifiable version of the given set. This method is different than the standard Collecti
  • addToMultiValuesMap
    Adds a value in a pseudo multi-values map. The multi-values map is simulated by a map of lists. The
  • compact
    Returns a more compact representation of the given set. This method is similar to #unmodifiableOrCop
  • first
    Returns the first element of the given iterable, or null if none. This method does not emit warning
  • immutableSet
    Returns the specified array as an immutable set, or null if the array is null. If the given array co
  • toArray
    Returns the elements of the given collection as an array. This method can be used when the valueClas
  • nonNull
    Returns the given set, or Collections#EMPTY_SET if the given set is null.
  • createSetForType
    Creates an initially empty set for elements of the given type. This method will creates specialized
  • emptySortedSet
    Returns a SortedSet which is always empty and accepts no element.Note: This method exists only on th
  • filter
    Returns an iterator over the elements of the given iterator where the predicate returns true. The it
  • identityEquals
    Returns true if the next elements returned by the given iterators are the same. This method compares
  • filter,
  • identityEquals,
  • nonNullArraySet,
  • removeFromMultiValuesMap,
  • toCaseInsensitiveNameMap,
  • toCollection,
  • empty,
  • emptyQueue,
  • nonEmpty

Popular in Java

  • Start an intent from android
  • startActivity (Activity)
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Kernel (java.awt.image)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Collectors (java.util.stream)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text plugins
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