Package net.sf.joafip.entity

Examples of net.sf.joafip.entity.MutableInteger.increment()


    MutableInteger count = referencedSet.get(dataRecordIdentifier);
    if (count == null) {
      count = new MutableInteger();
      referencedSet.put(dataRecordIdentifier, count);
    }
    count.increment();
  }

  public void addReferenced(final DataRecordIdentifier dataRecordIdentifier,
      final int linkCount) {
    MutableInteger count = referencedSet.get(dataRecordIdentifier);
View Full Code Here


    MutableInteger count = referencingSet.get(dataRecordIdentifier);
    if (count == null) {
      count = new MutableInteger();
      referencingSet.put(dataRecordIdentifier, count);
    }
    count.increment();
  }

  public void addReferencing(final DataRecordIdentifier dataRecordIdentifier,
      final int linkCount) {
    MutableInteger count = referencingSet.get(dataRecordIdentifier);
View Full Code Here

    final String key = objectToVisit.objectClassInfo.toString();
    final MutableInteger numberOfInstance = wroteObjectSet.get(key);
    if (numberOfInstance == null) {
      wroteObjectSet.put(key, new MutableInteger(1));
    } else {
      numberOfInstance.increment();
    }
    if (objectToVisit.isArrayType()) {
      final StringBuilder stringBuilder = new StringBuilder();
      stringBuilder.append(objectToVisit.toString());
      stringBuilder.append(':');
View Full Code Here

    }
    final MutableInteger count = linkMap.get(key);
    if (count == null) {
      linkMap.put(key, new MutableInteger(1));
    } else {
      if (count.increment() == 0) {
        linkMap.remove(key);
      }
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.