Tabnine Logo
Int2ObjectSortedMap.int2ObjectEntrySet
Code IndexAdd Tabnine to your IDE (free)

How to use
int2ObjectEntrySet
method
in
it.unimi.dsi.fastutil.ints.Int2ObjectSortedMap

Best Java code snippets using it.unimi.dsi.fastutil.ints.Int2ObjectSortedMap.int2ObjectEntrySet (Showing top 5 results out of 315)

origin: it.unimi.dsi/fastutil

/**
 * Returns an iterable yielding a bidirectional iterator that will be
 * {@linkplain FastSortedEntrySet fast}, if possible, on the
 * {@linkplain Map#entrySet() entry set} of the provided {@code map}.
 * 
 * @param map
 *            a map from which we will try to extract an iterable yielding a
 *            (fast) bidirectional iterator on the entry set.
 * @return an iterable yielding a bidirectional iterator on the entry set of the
 *         given map that will be fast, if possible.
 * @since 8.0.0
 */
@SuppressWarnings("unchecked")
public static <V> ObjectBidirectionalIterable<Int2ObjectMap.Entry<V>> fastIterable(Int2ObjectSortedMap<V> map) {
  final ObjectSortedSet<Int2ObjectMap.Entry<V>> entries = map.int2ObjectEntrySet();
  return entries instanceof Int2ObjectSortedMap.FastSortedEntrySet
      ? ((Int2ObjectSortedMap.FastSortedEntrySet<V>) entries)::fastIterator
      : entries;
}
/**
origin: it.unimi.dsi/fastutil

/**
 * Returns a sorted-set view of the mappings contained in this map.
 * <p>
 * Note that this specification strengthens the one given in the corresponding
 * type-specific unsorted map.
 *
 * @return a sorted-set view of the mappings contained in this map.
 * @see SortedMap#entrySet()
 * @deprecated Please use the corresponding type-specific method instead.
 */
@SuppressWarnings({"unchecked", "rawtypes"})
@Deprecated
@Override
default ObjectSortedSet<Map.Entry<Integer, V>> entrySet() {
  return (ObjectSortedSet) int2ObjectEntrySet();
}
/**
origin: it.unimi.dsi/fastutil

@Override
public ObjectSortedSet<Int2ObjectMap.Entry<V>> int2ObjectEntrySet() {
  if (entries == null)
    entries = ObjectSortedSets.unmodifiable(sortedMap.int2ObjectEntrySet());
  return (ObjectSortedSet<Int2ObjectMap.Entry<V>>) entries;
}
/**
origin: it.unimi.dsi/fastutil

@Override
public ObjectSortedSet<Int2ObjectMap.Entry<V>> int2ObjectEntrySet() {
  if (entries == null)
    entries = ObjectSortedSets.synchronize(sortedMap.int2ObjectEntrySet(), sync);
  return (ObjectSortedSet<Int2ObjectMap.Entry<V>>) entries;
}
/**
origin: it.unimi.dsi/fastutil

/**
 * Returns a bidirectional iterator that will be {@linkplain FastSortedEntrySet
 * fast}, if possible, on the {@linkplain Map#entrySet() entry set} of the
 * provided {@code map}.
 * 
 * @param map
 *            a map from which we will try to extract a (fast) bidirectional
 *            iterator on the entry set.
 * @return a bidirectional iterator on the entry set of the given map that will
 *         be fast, if possible.
 * @since 8.0.0
 */
@SuppressWarnings("unchecked")
public static <V> ObjectBidirectionalIterator<Int2ObjectMap.Entry<V>> fastIterator(Int2ObjectSortedMap<V> map) {
  final ObjectSortedSet<Int2ObjectMap.Entry<V>> entries = map.int2ObjectEntrySet();
  return entries instanceof Int2ObjectSortedMap.FastSortedEntrySet
      ? ((Int2ObjectSortedMap.FastSortedEntrySet<V>) entries).fastIterator()
      : entries.iterator();
}
/**
it.unimi.dsi.fastutil.intsInt2ObjectSortedMapint2ObjectEntrySet

Popular methods of Int2ObjectSortedMap

  • values
  • firstIntKey
    Returns the first (lowest) key currently in this map.
  • lastIntKey
    Returns the last (highest) key currently in this map.
  • subMap
    Note that this specification strengthens the one given in SortedMap#subMap(Object,Object).
  • comparator
  • firstKey
  • get
  • headMap
    Note that this specification strengthens the one given in SortedMap#headMap(Object).
  • isEmpty
  • keySet
  • lastKey
  • put
  • lastKey,
  • put,
  • tailMap

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JComboBox (javax.swing)
  • Top 12 Jupyter Notebook extensions
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