Java Doc for Byte.java in  » Apache-Harmony-Java-SE » java-package » java » lang » 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 » Apache Harmony Java SE » java package » java.lang 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.Number
      java.lang.Byte

Byte
final public class Byte extends Number implements Comparable<Byte>(Code)
Byte is the wrapper for the primitive type byte.
since:
   1.1


Field Summary
final public static  byteMAX_VALUE
     Constant for the maximum byte value, 27-1.
final public static  byteMIN_VALUE
     Constant for the minimum byte value, -27.
final public static  intSIZE
     Constant for the number of bits to represent a byte in two's compliment form.
final public static  Class<Byte>TYPE
     The java.lang.Class that represents this class.

Constructor Summary
public  Byte(byte value)
     Constructs a new instance of the receiver which represents the byte valued argument.
public  Byte(String string)
     Constructs a new instance of this class given a string.

Method Summary
public  bytebyteValue()
    
public  intcompareTo(Byte object)
     Compares this Byte to the Byte passed.
public static  Bytedecode(String string)
     Parses the string argument as if it was a byte value and returns the result.
public  doubledoubleValue()
    
public  booleanequals(Object object)
     Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.
public  floatfloatValue()
    
public  inthashCode()
     Answers an integer hash code for the receiver.
public  intintValue()
    
public  longlongValue()
    
public static  byteparseByte(String string)
     Parses the string argument as if it was a byte value and returns the result.
public static  byteparseByte(String string, int radix)
     Parses the string argument as if it was a byte value and returns the result.
public  shortshortValue()
    
public  StringtoString()
     Answers a string containing a concise, human-readable description of the receiver.
public static  StringtoString(byte value)
     Answers a string containing a concise, human-readable description of the argument.
Parameters:
  value - byte the byte to convert.
public static  BytevalueOf(String string)
     Parses the string argument as if it was a byte value and returns a Byte representing the result.
public static  BytevalueOf(String string, int radix)
     Parses the string argument as if it was a byte value and returns a Byte representing the result.
public static  BytevalueOf(byte b)
     Returns a Byte instance for the byte value passed.

Field Detail
MAX_VALUE
final public static byte MAX_VALUE(Code)
Constant for the maximum byte value, 27-1.



MIN_VALUE
final public static byte MIN_VALUE(Code)
Constant for the minimum byte value, -27.



SIZE
final public static int SIZE(Code)
Constant for the number of bits to represent a byte in two's compliment form.
since:
   1.5



TYPE
final public static Class<Byte> TYPE(Code)
The java.lang.Class that represents this class.




Constructor Detail
Byte
public Byte(byte value)(Code)
Constructs a new instance of the receiver which represents the byte valued argument.
Parameters:
  value - the byte to store in the new instance.



Byte
public Byte(String string) throws NumberFormatException(Code)
Constructs a new instance of this class given a string.
Parameters:
  string - a string representation of a single byte quantity.
throws:
  NumberFormatException - if the argument could not be parsed as a byte quantity.




Method Detail
byteValue
public byte byteValue()(Code)
Answers the byte value which the receiver represents byte the value of the receiver.



compareTo
public int compareTo(Byte object)(Code)
Compares this Byte to the Byte passed. If this instance's value is equal to the value of the instance passed, then 0 is returned. If this instance's value is less than the value of the instance passed, then a negative value is returned. If this instance's value is greater than the value of the instance passed, then a positive value is returned.
Parameters:
  object - The instance to compare to.
throws:
  NullPointerException - if object is null.
since:
   1.2



decode
public static Byte decode(String string) throws NumberFormatException(Code)
Parses the string argument as if it was a byte value and returns the result. It is an error if the received string does not contain a representation of a single byte quantity. The string may be a hexadecimal ("0x..."), octal ("0..."), or decimal ("...") representation of a byte.
Parameters:
  string - a string representation of a single byte quantity. Byte the value represented by the argument
throws:
  NumberFormatException - if the argument could not be parsed as a byte quantity.



doubleValue
public double doubleValue()(Code)
Answers the double value which the receiver represents double the value of the receiver.



equals
public boolean equals(Object object)(Code)
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.

In this case, the argument must also be a Byte, and the receiver and argument must represent the same byte value.


Parameters:
  object - the object to compare with this object true if the object is the same as this objectfalse if it is different from this object
See Also:   Byte.hashCode



floatValue
public float floatValue()(Code)
Answers the float value which the receiver represents float the value of the receiver.



hashCode
public int hashCode()(Code)
Answers an integer hash code for the receiver. Any two objects which answer true when passed to equals must answer the same value for this method. the receiver's hash
See Also:   Byte.equals



intValue
public int intValue()(Code)
Answers the int value which the receiver represents int the value of the receiver.



longValue
public long longValue()(Code)
Answers the long value which the receiver represents long the value of the receiver.



parseByte
public static byte parseByte(String string) throws NumberFormatException(Code)
Parses the string argument as if it was a byte value and returns the result. Throws NumberFormatException if the string does not represent a single byte quantity.
Parameters:
  string - a string representation of a single byte quantity. byte the value represented by the argument
throws:
  NumberFormatException - if the argument could not be parsed as a byte quantity.



parseByte
public static byte parseByte(String string, int radix) throws NumberFormatException(Code)
Parses the string argument as if it was a byte value and returns the result. Throws NumberFormatException if the string does not represent a single byte quantity. The second argument specifies the radix to use when parsing the value.
Parameters:
  string - a string representation of a single byte quantity.
Parameters:
  radix - the radix to use when parsing. byte the value represented by the argument
throws:
  NumberFormatException - if the argument could not be parsed as a byte quantity.



shortValue
public short shortValue()(Code)
Answers the short value which the receiver represents short the value of the receiver.



toString
public String toString()(Code)
Answers a string containing a concise, human-readable description of the receiver. a printable representation for the receiver.



toString
public static String toString(byte value)(Code)
Answers a string containing a concise, human-readable description of the argument.
Parameters:
  value - byte the byte to convert. String a printable representation for the byte.



valueOf
public static Byte valueOf(String string) throws NumberFormatException(Code)
Parses the string argument as if it was a byte value and returns a Byte representing the result. Throws NumberFormatException if the string cannot be parsed as a byte quantity.
Parameters:
  string - a string representation of a single byte quantity. Byte the value represented by the argument
throws:
  NumberFormatException - if the argument could not be parsed as a byte quantity.



valueOf
public static Byte valueOf(String string, int radix) throws NumberFormatException(Code)
Parses the string argument as if it was a byte value and returns a Byte representing the result. Throws NumberFormatException if the string cannot be parsed as a byte quantity. The second argument specifies the radix to use when parsing the value.
Parameters:
  string - a string representation of a single byte quantity.
Parameters:
  radix - the radix to use when parsing. Byte the value represented by the argument
throws:
  NumberFormatException - if the argument could not be parsed as a byte quantity.



valueOf
public static Byte valueOf(byte b)(Code)
Returns a Byte instance for the byte value passed. This method is preferred over the constructor, as this method may maintain a cache of instances.
Parameters:
  b - The byte value. A Byte instance.
since:
   1.5



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
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) 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.