sortedset « Set « Java Collection Q&A

Home
Java Collection Q&A
1.algorithm
2.array
3.Array Byte
4.Array Char
5.Array Convert
6.Array Dimension
7.Array Integer
8.Array Object
9.Array String
10.ArrayList
11.collection
12.comparator
13.Development
14.Garbage Collection
15.Generic
16.hash
17.HashMap
18.HashTable
19.iterator
20.LinkedList
21.List
22.Map
23.queue
24.Set
25.Sort
26.tree
Java Collection Q&A » Set » sortedset 

1. The best way to iterate SortedSet / SortedMap in Java backwards    stackoverflow.com

I need to iterate through SortedMap's entry set (which is a SortedSet) backwards. The code I'm writing is extremely performance-sensitive, as it's going to be called from many places thousands times ...

2. Diff between TreeSet and SortedSet    coderanch.com

4. SortedSet and Collections.binarySearch    java-forums.org

hello everyone... I created my type which implements Comparable like public class Key implements Comparable{ ... } and i added couple of keys in my sorted set SortedSet keys = new TreeSet(); keys.add(new Key(...)); keys.add(new Key(...)); keys.add(new Key(...)); when i try to binarysearch my sorted set like Collections.binarySearch(keys, new Key()); i have error message: The method binarySearch(List>, ...

5. SortedSet and Collections.binarySearch    forums.oracle.com

hello everyone... I created my type which implements Comparable like public class Key implements Comparable{ ... } and i added couple of keys in my sorted set SortedSet keys = new TreeSet(); keys.add(new Key(...)); keys.add(new Key(...)); keys.add(new Key(...)); when i try to binarysearch my sorted set like Collections.binarySearch(keys, new Key()); i have error message: The method binarySearch(List>, ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.