in src/main/java/com/amazonaws/services/dynamodbv2/util/ImmutableAttributeValue.java [27:44]
public ImmutableAttributeValue(AttributeValue av) {
s = av.getS();
n = av.getN();
b = av.getB() != null ? av.getB().array().clone() : null;
ns = av.getNS() != null ? new ArrayList<String>(av.getNS()) : null;
ss = av.getSS() != null ? new ArrayList<String>(av.getSS()) : null;
bs = av.getBS() != null ? new ArrayList<byte[]>(av.getBS().size()) : null;
if(av.getBS() != null) {
for(ByteBuffer buf : av.getBS()) {
if(buf != null) {
bs.add(buf.array().clone());
} else {
bs.add(null);
}
}
}
}