public final class Primitives extends Object
| Constructor and Description |
|---|
Primitives() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equals(byte[] a,
byte[] b)
Test the equality of two byte arrays.
|
static boolean |
equals(byte[] a,
int abegin,
byte[] b,
int bbegin,
int length)
Test the equality of a given sub-section of two byte arrays.
|
static boolean |
equals(double a,
double b)
Test the equality of two doubles by converting their values into
IEEE 754 floating-point "double format" long values.
|
static boolean |
equals(float a,
float b)
Test the equality of two doubles by converting their values into
IEEE 754 floating-point "single precision" bit layouts.
|
static Boolean |
valueOf(boolean value)
Get a Boolean from a boolean, equivalent to the java 1.4 method Boolean.valueOf(boolean)
|
public static Boolean valueOf(boolean value)
value - the booleanpublic static boolean equals(double a,
double b)
a - Double to check equality with.b - Double to check equality with.public static boolean equals(float a,
float b)
a - Float to check equality with.b - Float to check equality with.public static boolean equals(byte[] a,
int abegin,
byte[] b,
int bbegin,
int length)
a - The first byte array.abegin - The begining index of the first byte array.b - The second byte array.bbegin - The begining index of the second byte array.length - The length of the sub-section.public static boolean equals(byte[] a,
byte[] b)
a - The first byte array.b - The second byte array.Copyright © 2015 JBoss by Red Hat. All rights reserved.