@Test public void testPublicInformationFromByteArrayNull() { PskPublicInformation information = PskPublicInformation.fromByteArray(null); assertEquals(PskPublicInformation.EMPTY, information); }
public static PskPublicInformation fromByteArray(byte[] byteArray) { if (byteArray == null || byteArray.length == 0) { return EMPTY; } return new PskPublicInformation(byteArray); }
PskPublicInformation extends Bytes { public static PskPublicInformation fromByteArray(byte[] byteArray) { if (byteArray == null || byteArray.length == 0) { return EMPTY; } return new PskPublicInformation(byteArray); } }
PskPublicInformation extends Bytes { public static PskPublicInformation fromByteArray(byte[] byteArray) { if (byteArray == null || byteArray.length == 0) { return EMPTY; } return new PskPublicInformation(byteArray); } private  PskPublicInformation(byte[] publicInfoBytes);  PskPublicInformation(String publicInfo);  PskPublicInformation(String publicInfo, byte[] publicInfoBytes); }
PskPublicInformation extends Bytes { public static PskPublicInformation fromByteArray(byte[] byteArray) { if (byteArray == null || byteArray.length == 0) { return EMPTY; } return new PskPublicInformation(byteArray); } private  PskPublicInformation(byte[] publicInfoBytes);  PskPublicInformation(String publicInfo);  PskPublicInformation(String publicInfo, byte[] publicInfoBytes); void normalize(String publicInfo); boolean isCompliantEncoding(); String getPublicInfoAsString(); @Override String toString(); static PskPublicInformation fromByteArray(byte[] byteArray); }
PskPublicInformation extends Bytes { public static PskPublicInformation fromByteArray(byte[] byteArray) { if (byteArray == null || byteArray.length == 0) { return EMPTY; } return new PskPublicInformation(byteArray); } private  PskPublicInformation(byte[] publicInfoBytes);  PskPublicInformation(String publicInfo);  PskPublicInformation(String publicInfo, byte[] publicInfoBytes); void normalize(String publicInfo); boolean isCompliantEncoding(); String getPublicInfoAsString(); @Override String toString(); static PskPublicInformation fromByteArray(byte[] byteArray); static final PskPublicInformation EMPTY; }