public int add(T data, long imageMembershipsFlags) {
if(!ordinalMap.isReadyForAddingObjects())
throw new RuntimeException("The FastBlobStateEngine is not ready to add more Objects. Did you remember to call stateEngine.prepareForNextCycle()?");
if (objectOrdinalMap != null) {
Entry existingEntry = objectOrdinalMap.getEntry(data);
if (existingEntry != null) {
if (existingEntry.hasImageMembershipsFlags(imageMembershipsFlags)) {
return existingEntry.getOrdinal();
}
}
}
FastBlobSerializationRecord rec = record();