Java Doc for KeySortedList.java in  » GIS » GeoTools-2.4.1 » org » geotools » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.util.AbstractSequentialList
   org.geotools.util.KeySortedList

KeySortedList
public class KeySortedList extends AbstractSequentialList implements Serializable(Code)
List of elements sorted by a key which is not the element itself.
since:
   2.2
version:
   $Id: KeySortedList.java 22443 2006-10-27 20:47:22Z desruisseaux $
author:
   Simone Giannecchini
author:
   Martin Desruisseaux



Constructor Summary
public  KeySortedList()
     Creates a new, initially empty list.

Method Summary
public  voidadd(Comparable key, Object element)
     Inserts the specified element at a position determined by the specified key.
public  voidclear()
     Removes all of the elements from this list.
public  booleancontainsKey(Comparable key)
     Returns true if the list contains an element with the specified key.
public  intcount(Comparable key)
     Returns the number of elements with the specified key.
public  Objectfirst(Comparable key)
     Returns the first element with the specified key.
Parameters:
  key - The key for the element to search for.
public  KeySortedListheadList(Comparable toKey)
     Returns a view of the portion of this list whose keys are strictly less than toKey . The returned list is backed by this list, so changes in the returned list are reflected in this list, and vice-versa.
Parameters:
  toKey - high endpoint (exclusive) of the sub list.
public  Objectlast(Comparable key)
     Returns the last element with the specified key.
Parameters:
  key - The key for the element to search for.
public  ListIteratorlistIterator(Comparable fromKey)
     Returns a list iterator of the elements in this list (in proper sequence), starting at the elements with the specified key.
Parameters:
  fromKey - The key of the first element to returns.
public  ListIteratorlistIterator(int index)
     Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position.
public  intremoveAll(Comparable key)
     Removes all values that were with the specified key.
public  intsize()
     Returns the number of elements in this list.
public  KeySortedListtailList(Comparable fromKey)
     Returns a view of the portion of this list whose keys are greater than or equal to fromKey .


Constructor Detail
KeySortedList
public KeySortedList()(Code)
Creates a new, initially empty list.




Method Detail
add
public void add(Comparable key, Object element)(Code)
Inserts the specified element at a position determined by the specified key. If some elements were already inserted for the specified key, then this method do not replaces the old value (like what a Map would do), but instead add the new element with the same key.
Parameters:
  key - Key to be used to find the right location.
Parameters:
  element - Object to be inserted.



clear
public void clear()(Code)
Removes all of the elements from this list.



containsKey
public boolean containsKey(Comparable key)(Code)
Returns true if the list contains an element with the specified key. This is equivalent to testing (key) != 0.



count
public int count(Comparable key)(Code)
Returns the number of elements with the specified key.



first
public Object first(Comparable key) throws NoSuchElementException(Code)
Returns the first element with the specified key.
Parameters:
  key - The key for the element to search for. The first element added with the specified key.
throws:
  NoSuchElementException - if there is no element for the specified key.



headList
public KeySortedList headList(Comparable toKey)(Code)
Returns a view of the portion of this list whose keys are strictly less than toKey . The returned list is backed by this list, so changes in the returned list are reflected in this list, and vice-versa.
Parameters:
  toKey - high endpoint (exclusive) of the sub list. A view of the specified initial range of this list.



last
public Object last(Comparable key) throws NoSuchElementException(Code)
Returns the last element with the specified key.
Parameters:
  key - The key for the element to search for. The last element added with the specified key.
throws:
  NoSuchElementException - if there is no element for the specified key.



listIterator
public ListIterator listIterator(Comparable fromKey)(Code)
Returns a list iterator of the elements in this list (in proper sequence), starting at the elements with the specified key.
Parameters:
  fromKey - The key of the first element to returns. A list iterator of the elements in this list (in proper sequence).
throws:
  IndexOutOfBoundsException - if the index is out of range.



listIterator
public ListIterator listIterator(int index)(Code)
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position. The specified index indicates the first element that would be returned by an initial call to the ListIterator.next next() method.
Parameters:
  index - Index of first element to be returned from the list iterator. A list iterator of the elements in this list (in proper sequence).
throws:
  IndexOutOfBoundsException - if the index is out of range.



removeAll
public int removeAll(Comparable key)(Code)
Removes all values that were with the specified key. Returns the number of elements removed.



size
public int size()(Code)
Returns the number of elements in this list.



tailList
public KeySortedList tailList(Comparable fromKey)(Code)
Returns a view of the portion of this list whose keys are greater than or equal to fromKey . The returned list is backed by this list, so changes in the returned list are reflected in this list, and vice-versa.
Parameters:
  fromKey - low endpoint (inclusive) of the sub list. A view of the specified final range of this list.



Methods inherited from java.util.AbstractSequentialList
public void add(int index, E element)(Code)(Java Doc)
public boolean addAll(int index, Collection<? extends E> c)(Code)(Java Doc)
public E get(int index)(Code)(Java Doc)
public Iterator<E> iterator()(Code)(Java Doc)
abstract public ListIterator<E> listIterator(int index)(Code)(Java Doc)
public E remove(int index)(Code)(Java Doc)
public E set(int index, E element)(Code)(Java Doc)

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