Java Doc for KualiInteger.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » core » 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 » ERP CRM Financial » Kuali Financial System » org.kuali.core.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Number
      org.kuali.core.util.KualiInteger

KualiInteger
public class KualiInteger extends Number implements Comparable(Code)


Field Summary
final public static  intROUND_BEHAVIOR
    
final public static  intSCALE
    
public static  KualiIntegerZERO
    

Constructor Summary
public  KualiInteger(String value)
     Constructor - only accepts a string representation of the value.
public  KualiInteger(long value)
     Initializes this instance to the given integer value with integer arithmetic.
public  KualiInteger(BigInteger value)
     Simple constructor, copies in the given BigInteger as the value for the instance.
public  KualiInteger(BigDecimal value)
     Simple constructor, copies in the given BigInteger as the value for the instance.
public  KualiInteger(KualiDecimal value, RoundingMode roundingMode)
    

Method Summary
public  KualiIntegeradd(KualiInteger addend)
     Wraps BigDecimal's add method to accept and return KualiDecimal instances instead of BigDecimals, so that users of the class don't have to typecast the return value.
public  BigDecimalbigDecimalValue()
    
public  BigIntegerbigIntegerValue()
    
public  intcompareTo(Object o)
     Compares this KualiInteger with the specified Object.
public  intcompareTo(KualiInteger k)
     Returns the result of comparing the values of this KualiInteger and the given KualiInteger.
public  BigDecimaldivide(BigDecimal dividend)
    
public  BigDecimaldivide(KualiInteger dividend)
    
public  doubledoubleValue()
    
public  booleanequals(Object obj)
    
public  floatfloatValue()
    
public  inthashCode()
    
public  intintValue()
    
public  booleanisGreaterEqual(KualiInteger operand)
    
public  booleanisGreaterThan(KualiInteger operand)
    
public  booleanisLessEqual(KualiInteger operand)
    
public  booleanisLessThan(KualiInteger operand)
    
public  booleanisNegative()
    
public  booleanisNonZero()
    
public  booleanisPositive()
    
public  booleanisZero()
    
public  KualiDecimalkualiDecimalValue()
    
public  longlongValue()
    
public  KualiIntegermultiply(KualiInteger multiplier)
     Wraps BigDecimal's multiply method to accept and return KualiInteger instances instead of BigDecimals, so that users of the class don't have to typecast the return value.
public  KualiIntegermultiply(BigDecimal multiplier)
    
public  KualiIntegermultiply(KualiDecimal multiplier)
    
public  KualiIntegernegated()
    
public  KualiIntegersubtract(KualiInteger subtrahend)
     Wraps BigDecimal's subtract method to accept and return KualiDecimal instances instead of BigDecimals, so that users of the class don't have to typecast the return value.
public  StringtoString()
    

Field Detail
ROUND_BEHAVIOR
final public static int ROUND_BEHAVIOR(Code)



SCALE
final public static int SCALE(Code)



ZERO
public static KualiInteger ZERO(Code)




Constructor Detail
KualiInteger
public KualiInteger(String value)(Code)
Constructor - only accepts a string representation of the value. This is done to prevent unexpected inaccuracy by conversion to and from floating-point values.
Parameters:
  value - String containing numeric value
throws:
  IllegalArgumentException - if the given String is null



KualiInteger
public KualiInteger(long value)(Code)
Initializes this instance to the given integer value with integer arithmetic.



KualiInteger
public KualiInteger(BigInteger value)(Code)
Simple constructor, copies in the given BigInteger as the value for the instance.
Parameters:
  value - BigInteger to be used as basis for value
throws:
  IllegalArgumentException - if the given BigDecimal is null



KualiInteger
public KualiInteger(BigDecimal value)(Code)
Simple constructor, copies in the given BigInteger as the value for the instance.
Parameters:
  value - BigInteger to be used as basis for value
throws:
  IllegalArgumentException - if the given BigDecimal is null



KualiInteger
public KualiInteger(KualiDecimal value, RoundingMode roundingMode)(Code)
Simple constructor, rounds the given KualiDecimal according to the RoundingMode
Parameters:
  value - KualiDecmial to be used as basis for value
Parameters:
  roundingMode - RoundingMode for converting to Integer
throws:
  IllegalArgumentException - if the given KualiDecmial or RoundingMode is null




Method Detail
add
public KualiInteger add(KualiInteger addend)(Code)
Wraps BigDecimal's add method to accept and return KualiDecimal instances instead of BigDecimals, so that users of the class don't have to typecast the return value.
Parameters:
  addend - result of adding the given addend to this value
throws:
  IllegalArgumentException - if the given addend is null



bigDecimalValue
public BigDecimal bigDecimalValue()(Code)
the value of this instance as a BigDecimal.



bigIntegerValue
public BigInteger bigIntegerValue()(Code)
the value of this instance as a BigDecimal.



compareTo
public int compareTo(Object o)(Code)
Compares this KualiInteger with the specified Object. If the Object is a KualiInteger, this method behaves like java.lang.Comparable#compareTo(java.lang.Object). Otherwise, it throws a ClassCastException (as KualiIntegers are comparable only to other KualiIntegers).
See Also:   java.lang.Comparable.compareTo(java.lang.Object)



compareTo
public int compareTo(KualiInteger k)(Code)
Returns the result of comparing the values of this KualiInteger and the given KualiInteger.
See Also:   java.lang.Comparable.compareTo(java.lang.Object)



divide
public BigDecimal divide(BigDecimal dividend)(Code)



divide
public BigDecimal divide(KualiInteger dividend)(Code)



doubleValue
public double doubleValue()(Code)

See Also:   java.lang.Number.doubleValue



equals
public boolean equals(Object obj)(Code)

See Also:   java.lang.Object.equals(java.lang.Object)



floatValue
public float floatValue()(Code)

See Also:   java.lang.Number.floatValue



hashCode
public int hashCode()(Code)

See Also:   java.lang.Object.hashCode



intValue
public int intValue()(Code)

See Also:   java.lang.Number.intValue



isGreaterEqual
public boolean isGreaterEqual(KualiInteger operand)(Code)

Parameters:
  operand - true if this KualiDecimal is greater than or equal to the given KualiDecimal



isGreaterThan
public boolean isGreaterThan(KualiInteger operand)(Code)

Parameters:
  operand - true if this KualiDecimal is greater than the given KualiDecimal



isLessEqual
public boolean isLessEqual(KualiInteger operand)(Code)

Parameters:
  operand - true if this KualiDecimal is less than or equal to the given KualiDecimal



isLessThan
public boolean isLessThan(KualiInteger operand)(Code)

Parameters:
  operand - true if this KualiDecimal is less than the given KualiDecimal



isNegative
public boolean isNegative()(Code)
true if this KualiDecimal is less than zero



isNonZero
public boolean isNonZero()(Code)
true if this KualiDecimal is not equal to zero



isPositive
public boolean isPositive()(Code)
true if this KualiDecimal is greater than zero



isZero
public boolean isZero()(Code)
true if this KualiDecimal is equal to zero



kualiDecimalValue
public KualiDecimal kualiDecimalValue()(Code)
the value of this instance as a BigDecimal.



longValue
public long longValue()(Code)

See Also:   java.lang.Number.longValue



multiply
public KualiInteger multiply(KualiInteger multiplier)(Code)
Wraps BigDecimal's multiply method to accept and return KualiInteger instances instead of BigDecimals, so that users of the class don't have to typecast the return value.
Parameters:
  multiplicand - result of multiplying this value by the given multiplier
throws:
  IllegalArgumentException - if the given multiplier is null



multiply
public KualiInteger multiply(BigDecimal multiplier)(Code)



multiply
public KualiInteger multiply(KualiDecimal multiplier)(Code)



negated
public KualiInteger negated()(Code)
a KualiInteger with the same scale and a negated value (iff the value is non-zero)



subtract
public KualiInteger subtract(KualiInteger subtrahend)(Code)
Wraps BigDecimal's subtract method to accept and return KualiDecimal instances instead of BigDecimals, so that users of the class don't have to typecast the return value.
Parameters:
  subtrahend - result of the subtracting the given subtrahend from this value
throws:
  IllegalArgumentException - if the given subtrahend is null



toString
public String toString()(Code)

See Also:   java.lang.Object.toString



Methods inherited from java.lang.Number
public byte byteValue()(Code)(Java Doc)
abstract public double doubleValue()(Code)(Java Doc)
abstract public float floatValue()(Code)(Java Doc)
abstract public int intValue()(Code)(Java Doc)
abstract public long longValue()(Code)(Java Doc)
public short shortValue()(Code)(Java Doc)

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.