in proton-j/src/main/java/org/apache/qpid/proton/codec/messaging/FastPathPropertiesType.java [271:301]
private int getElementCount(Properties properties) {
if (properties.getReplyToGroupId() != null) {
return 13;
} else if (properties.getGroupSequence() != null) {
return 12;
} else if (properties.getGroupId() != null) {
return 11;
} else if (properties.getCreationTime() != null) {
return 10;
} else if (properties.getAbsoluteExpiryTime() != null) {
return 9;
} else if (properties.getContentEncoding() != null) {
return 8;
} else if (properties.getContentType() != null) {
return 7;
} else if (properties.getCorrelationId() != null) {
return 6;
} else if (properties.getReplyTo() != null) {
return 5;
} else if (properties.getSubject() != null) {
return 4;
} else if (properties.getTo() != null) {
return 3;
} else if (properties.getUserId() != null) {
return 2;
} else if (properties.getMessageId() != null) {
return 1;
}
return 0;
}