/** * Retrieves the set of values for the specified attribute as byte arrays, if * available. * * @param attributeName The name of the attribute for which to retrieve the * values. It must not be {@code null}. * * @return The set of values for the specified attribute as byte arrays, or * {@code null} if that attribute is not available. */ public byte[][] getAttributeValueByteArrays(final String attributeName) { ensureNotNull(attributeName); for (final CompactAttribute a : attributes) { if (a.getName().equalsIgnoreCase(attributeName)) { return a.getByteValues(); } } return null; }
/** * Retrieves the set of values for the specified attribute as byte arrays, if * available. * * @param attributeName The name of the attribute for which to retrieve the * values. It must not be {@code null}. * * @return The set of values for the specified attribute as byte arrays, or * {@code null} if that attribute is not available. */ public byte[][] getAttributeValueByteArrays(final String attributeName) { ensureNotNull(attributeName); for (final CompactAttribute a : attributes) { if (a.getName().equalsIgnoreCase(attributeName)) { return a.getByteValues(); } } return null; }
final byte[][] values = a.getByteValues(); if (values.length > 0)
final byte[][] values = a.getByteValues(); if (values.length > 0)