public final class ProtoUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkArgument(boolean condition,
String message) |
static void |
checkBounds(byte[] buffer,
int offset,
int length) |
static <T> T |
checkNotNull(T object) |
static void |
checkState(boolean condition,
String message) |
static RepeatedByte |
decodeBase64(int expectedSize,
String... parts)
Parses binary data from base64 encoded String segments.
|
static void |
decodeUtf8(byte[] bytes,
int offset,
int length,
StringBuilder output)
Decodes utf8 bytes into a reusable StringBuilder object.
|
static int |
hash32(CharSequence value)
Hash code for JSON field name lookup.
|
static boolean |
isEqual(boolean a,
boolean b) |
static boolean |
isEqual(byte a,
byte b) |
static boolean |
isEqual(CharSequence a,
CharSequence b) |
static boolean |
isEqual(double a,
double b) |
static boolean |
isEqual(float a,
float b) |
static boolean |
isEqual(int a,
int b) |
static boolean |
isEqual(long a,
long b) |
public static void decodeUtf8(byte[] bytes,
int offset,
int length,
StringBuilder output)
public static RepeatedByte decodeBase64(int expectedSize, String... parts)
expectedSize - size hint for allocating the initial arrayparts - binary parts encoded as base64 stringspublic static int hash32(CharSequence value)
public static void checkState(boolean condition,
String message)
public static void checkArgument(boolean condition,
String message)
public static <T> T checkNotNull(T object)
public static void checkBounds(byte[] buffer,
int offset,
int length)
public static boolean isEqual(CharSequence a, CharSequence b)
public static boolean isEqual(double a,
double b)
public static boolean isEqual(float a,
float b)
public static boolean isEqual(boolean a,
boolean b)
public static boolean isEqual(long a,
long b)
public static boolean isEqual(int a,
int b)
public static boolean isEqual(byte a,
byte b)
Copyright © 2019–2024 HEBI Robotics. All rights reserved.