Java Doc for LeafNodeEntry.java in  » Search-Engine » Jofti » com » jofti » btree » 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 » Search Engine » Jofti » com.jofti.btree 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.jofti.btree.LeafNodeEntry

All known Subclasses:   com.jofti.btree.MaxLeafNodeEntry,  com.jofti.btree.MinLeafNodeEntry,
LeafNodeEntry
public class LeafNodeEntry implements NodeEntry(Code)
The leaf node entry contains a value, qand a set of uniqueIds that are the ids passed into the node for that value.
Adding a new id,value pair will result in the id being added to the set and the value remaining unchanged.


author:
   Steve Woodcock
version:
   1.14



Field Summary
protected volatile  inthashCode
    
public  SetuniqueIdSet
    
public  Comparablevalue
    

Constructor Summary
public  LeafNodeEntry()
    
public  LeafNodeEntry(Object uniqueId, Comparable value)
    

Method Summary
public  voidaddUniqueId(Object uniqueId)
     Adds an object to the existing Set.
 voidaddUniqueIdSet(Set uniqueIdList)
     Adds the elements of a set to the existing set.
public  intcompareTo(Object o)
     Compares this object with the specified object for order.
public  booleanequals(Object o)
    
 SetgetUniqueIdSet()
     Getter for property uniqueIdList.
public  intgetUniqueIdSize()
     Return the size of the Set.
public  ComparablegetValue()
     Getter for property value.
public  inthashCode()
    
 voidremoveAllIds(Set idSet)
    
 voidremoveUniqueId(Object Id)
    
 voidsetUniqueIdSet(Set uniqueIdList)
     Setter for property uniqueIdList.
public  voidsetValue(Comparable value)
     Setter for property value.
public  StringtoString()
    

Field Detail
hashCode
protected volatile int hashCode(Code)



uniqueIdSet
public Set uniqueIdSet(Code)



value
public Comparable value(Code)




Constructor Detail
LeafNodeEntry
public LeafNodeEntry()(Code)
Creates a new instance of NodeEntry



LeafNodeEntry
public LeafNodeEntry(Object uniqueId, Comparable value)(Code)




Method Detail
addUniqueId
public void addUniqueId(Object uniqueId)(Code)
Adds an object to the existing Set.
Parameters:
  uniqueId -



addUniqueIdSet
void addUniqueIdSet(Set uniqueIdList)(Code)
Adds the elements of a set to the existing set.
Parameters:
  uniqueIdList -



compareTo
public int compareTo(Object o)(Code)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

In the foregoing description, the notation sgn(expression) designates the mathematical signum function, which is defined to return one of -1, 0, or 1 according to whether the value of expression is negative, zero or positive. The implementor must ensure sgn(x.compareTo(y)) == -sgn(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception iff y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y)>0 && y.compareTo(z)>0) implies x.compareTo(z)>0.

Finally, the implementer must ensure that x.compareTo(y)==0 implies that sgn(x.compareTo(z)) == sgn(y.compareTo(z)), for all z.

It is strongly recommended, but not strictly required that (x.compareTo(y)==0) == (x.equals(y)). Generally speaking, any class that implements the Comparable interface and violates this condition should clearly indicate this fact. The recommended language is "Note: this class has a natural ordering that is inconsistent with equals."
Parameters:
  o - the Object to be compared. a negative integer, zero, or a positive integer as this objectis less than, equal to, or greater than the specified object.
throws:
  ClassCastException - if the specified object's type prevents itfrom being compared to this Object.




equals
public boolean equals(Object o)(Code)



getUniqueIdSet
Set getUniqueIdSet()(Code)
Getter for property uniqueIdList. Value of property uniqueIdList.



getUniqueIdSize
public int getUniqueIdSize()(Code)
Return the size of the Set.



getValue
public Comparable getValue()(Code)
Getter for property value. Value of property value.



hashCode
public int hashCode()(Code)



removeAllIds
void removeAllIds(Set idSet)(Code)



removeUniqueId
void removeUniqueId(Object Id)(Code)



setUniqueIdSet
void setUniqueIdSet(Set uniqueIdList)(Code)
Setter for property uniqueIdList.
Parameters:
  uniqueIdList - New value of property uniqueIdList.



setValue
public void setValue(Comparable value)(Code)
Setter for property value.
Parameters:
  value - New value of property value.



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.