Java Doc for IndirectPriorityQueue.java in  » Development » FastUtil » it » unimi » dsi » fastutil » 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 » Development » FastUtil » it.unimi.dsi.fastutil 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


it.unimi.dsi.fastutil.IndirectPriorityQueue

IndirectPriorityQueue
public interface IndirectPriorityQueue (Code)
An indirect priority queue.

An indirect priority queue provides a way to by index elements taken from a given reference list, and to them in some specified order. Elements that are smaller in the specified order are dequeued first. It is also possible to get the , that is, the index that would be dequeued next.

Additionally, the queue may provide a method to peek at the index of the element that would be dequeued .

The reference list should not change during queue operations (or, more precisely, the relative order of the elements in the queue should not change). Nonetheless, some implementations may give the caller a way to notify the queue that the .

Optionally, an indirect priority queue may even provide methods to notify , and to any element of the reference list presently in the queue. It may even allow to notify that .

It is always possible to enqueue two distinct indices corresponding to equal elements of the reference list. However, depending on the implementation, it may or may not be possible to enqueue twice the same index.

Note that all element manipulation happens via indices.





Method Summary
public  voidallChanged()
     Notifies the queue that the all elements have changed (optional operation).
 voidchanged()
     Notifies the queue that the has changed (optional operation).
public  voidchanged(int index)
     Notifies the queue that the specified element has changed (optional operation).
 voidclear()
     Removes all elements from this queue.
 Comparator<? super K>comparator()
     Returns the comparator associated with this queue, or null if it uses its elements' natural ordering.
 intdequeue()
     Dequeues the element from the queue.
 voidenqueue(int index)
     Enqueues a new element.
 intfirst()
     Returns the first element of the queue.
public  intfront(int[] a)
     Retrieves the front of the queue in a given array (optional operation).

The front of an indirect queue is the set of indices whose associated elements in the reference array are equal to the element associated to the .

 booleanisEmpty()
     Checks whether the queue is empty.
 intlast()
     Returns the last element of the queue, that is, the element the would be dequeued last (optional operation).
public  voidremove(int index)
     Removes the specified element from the queue (optional operation).
 intsize()
     Returns the number of elements in this queue.



Method Detail
allChanged
public void allChanged()(Code)
Notifies the queue that the all elements have changed (optional operation).



changed
void changed()(Code)
Notifies the queue that the has changed (optional operation).



changed
public void changed(int index)(Code)
Notifies the queue that the specified element has changed (optional operation).

Note that the specified element must belong to the queue.
Parameters:
  index - the element that has changed.
throws:
  NoSuchElementException - if the specified element is not in the queue.




clear
void clear()(Code)
Removes all elements from this queue.



comparator
Comparator<? super K> comparator()(Code)
Returns the comparator associated with this queue, or null if it uses its elements' natural ordering. the comparator associated with this sorted set, or null if it uses its elements' natural ordering.



dequeue
int dequeue()(Code)
Dequeues the element from the queue. the dequeued element.
throws:
  NoSuchElementException - if the queue is empty.



enqueue
void enqueue(int index)(Code)
Enqueues a new element.
Parameters:
  index - the element to enqueue..



first
int first()(Code)
Returns the first element of the queue. the first element.
throws:
  NoSuchElementException - if the queue is empty.



front
public int front(int[] a)(Code)
Retrieves the front of the queue in a given array (optional operation).

The front of an indirect queue is the set of indices whose associated elements in the reference array are equal to the element associated to the . These indices can be always obtain by dequeueing, but this method should retrieve efficiently such indices in the given array without modifying the state of the queue.
Parameters:
  a - an array large enough to hold the front (e.g., at least long as the reference array). the number of elements actually written (starting from the first position of a).




isEmpty
boolean isEmpty()(Code)
Checks whether the queue is empty. true if the queue is empty.



last
int last()(Code)
Returns the last element of the queue, that is, the element the would be dequeued last (optional operation). the last element.
throws:
  NoSuchElementException - if the queue is empty.



remove
public void remove(int index)(Code)
Removes the specified element from the queue (optional operation).

Note that the specified element must belong to the queue.
Parameters:
  index - the element to be removed.
throws:
  NoSuchElementException - if the specified element is not in the queue.




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



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