Collection Api

Collection Api

what is the use of navidableset and navigablemap why we are using that two class

View Answers

September 8, 2011 at 5:23 PM

Navigableset: It is used to return the closest matches of elements. For instance if it is needed to retrieve an element, which is immediately greater than, or lower than element 20 or if we want to retrieve all elements greater than or lower than 35 from sorted set elements [10,20,35,5] we can use NavigableSet. ConcurrentSkipListSet is one of the class that implements NavigableSet.

Example

Navigablemap: Unlike the NavigableSet (return values), NaviagableMap methods is used to return the key-value pair. ConcurrentSkipListMap is the one of the class which implements NaviagableMap

Example









Related Tutorials/Questions & Answers:
Collection Api
Collection Api  which scenario we are using arraylist and linkedlist and vector
Collection Api
Collection Api  what is the use of navidableset and navigablemap why we are using that two class
Advertisements
Java Collection API - Java Tutorials
Java Collection API Collection was added to Java with J2SE 1.2 release. Collection framework is provided in 'java.util.package'. All collections... implementations of the collection interfaces. Also, they are reusable data structures
Collection
Collection  What is the exact difference between lagacy classes and collection classes? and Enumeration is possible on Collection classes
collection
collection  As we know array holds the similar kind of elements, then in collection how toArray() method will convert the collection having different objects as elements to an array in java
collection
, Hashtable and Collections and Collection?   Enumeration : It is series... : It is re-sizable array implementation. Belongs to 'List' group in collection... Map in collection. Collections : It implements Polymorphic algorithms which
Collection
Collection  actually why do we need collections? means we can also store group of objects in relational data base and dbms also provides all the operatoins insert,delete,update,sort,search etc. then why collection
collection overview and collection interface
collection overview and collection interface  write the program for collection interface?   Please visit the following links: http://www.roseindia.net/java/jdk6/Collection-Interfaces.shtml http://www.roseindia.net
Collection Types
Collection Types  What are the Collection types in Hibernate
Collection framework
Collection framework  what are the real life examples of using Collection in java
Java Collection
Java Collection  What is the Collection interface
Jaca Collection
Jaca Collection  does Java collection allow incompatible types to be stored in single collection
Collection in java
Collection in java  What are the meaning of the letters E,T,K and V that come in the collection concept
collection and framework.
collection and framework.  please give some study material of collection and framework
collection interface
collection interface  methods of collection interface and their description with example program?   Please visit the following links: http://www.roseindia.net/java/jdk6/Collection-Interfaces.shtml http
collection interface
collection interface  methods of collection interface and their description with example program?   Please visit the following links: http://www.roseindia.net/java/jdk6/Collection-Interfaces.shtml http
COLLECTION FRAMEWORK
COLLECTION FRAMEWORK  Hi, i need complete detailed explanation on COLLECTION FRAMEWORK with examples(which include set,list,queue,map and operations performed on them).need help... Regards, Anu
COLLECTION FRAMEWORK
COLLECTION FRAMEWORK  Hi, i need complete detailed explanation on COLLECTION FRAMEWORK with examples(which include set,list,queue,map and operations performed on them).need help... Regards, Anu
Java collection
Java collection  What are differences between Enumeration, ArrayList, Hashtable and Collections and Collection
garbage collection
garbage collection  how to use garbage collection in program using core java
Garbage collection
Garbage collection  why garbage collection? How it works?   Garbage collection is one of the most important features of Java. The purpose of garbage collection is to identify and discard objects that are no longer
Collection framework
Collection framework  import java.util.*; public class CollectFrame { public static void main(String [] args) { System.out.println( "Collection Example!\n" ); //int size; HashSet collection = new HashSet(); String str1
Collection HashMap
Collection HashMap  Please give me an example in which hash map having key value pair and key should be map again means map within map example. thanks in advance
Collection HashMap
Collection HashMap  Please give me an example in which hash map having key value pair and key should be map again means map within map example. thanks in advance
Collection Framework
Collection Framework  Please help me out..I have a class as below public class Employee { private int Id; private String name; private int salary; private int age; } public class Collection { public static void main
collection
collection
Collection
collection
collection
collection frame work
collection frame work  explain all the concept in collection frame work
c++ garbage collection implementation
c++ garbage collection implementation  How to implement the garbage collection program in C
collection frame work
collection frame work  explain the hierarchy of one dimensional collection frame work classes
collection frame work
collection frame work  could you please tell me detail the concept of collection frame work
What are the Collection types in Hibernate ?
What are the Collection types in Hibernate ?  hi, What are the Collection types in Hibernate ? Thanks
garbage collection in java
.style1 { color: #FFFFFF; } Garbage Collection in Java In java... through garbage collection. In other words it deallocate memory automatically which have no longer use. This technique is known as Garbage Collection
Java garbage collection
Java garbage collection  What is Garbage Collection and how to call it explicitly
Collection framework tutorial
Collection framework tutorial  Hi, I am learning Collection framework in Java. I want many examples of Java collection framework. Tell me the best tutorial website for learning Java Collection framework. ThanksADS_TO_REPLACE_1
Collection Framework - Java Beginners
Collection Framework  Pls explain the disadvantages of using collection framework as it was written in this forum ? It must cast to correct type. ? Cannot do compile time checking. I couldnot get in detail as to what
on collection mapping - Hibernate
on collection mapping  differences b/w collection mappings tags list,set,bag   Hi Friend, Differences: A set is a collection in which no item occurs more than once. A bag is a collection in which items may
Sorted and ordered collection
Sorted and ordered collection  What is the difference between sorted and ordered collection in hibernate
Collection classes in java
Collection classes in java   Normally a database is used... is the reason using java collection classes saved/stored the data/content.I don't understand, what is the idea using java collection classes in project
Collection classes in java
Collection classes in java   Normally a database is used... is the reason using java collection classes saved/stored the data/content.I don't understand, what is the idea using java collection classes in project
Anthem DVD Collection
Anthem DVD Collection       DVD collection based on the Ajax Anthem.Net project Read full descriptionADS_TO_REPLACE_1
Collection : ArrayList Example
This tutorial contains description of Collection ArrayList with example
Collection : LinkedList Example
This tutorial contains description of Collection LinkedList with example
struts collection problem in Mozilla
struts collection problem in Mozilla   I used the to get list of records, if records are more than 15-20 then this is not seen properly with vertical scroll bar on Mozilla. Plz help me
Filter collection in Java 8
Filter collection in Java 8  Hi, I have following collection..., Example of Filter collection in Java 8 You can use the following code in Java 8... the data not containing "Java". Thanks   Hi, We have huge collection
Array to Collection
Array to Collection       In this example we are converting values of an array into collection. List  interface is a member of the Java Collection Framework
garbage collection implementation dependent java
garbage collection implementation dependent java  How a garbage collection works in Java

Ads