Examples of AWMutableRefCount


Examples of ariba.ui.aribaweb.util.AWMutableRefCount

        if (RefCountTable == null) {
            RefCountTable = MapUtil.map();
        }
        String className = object.getClass().getName();
        synchronized (RefCountTable) {
            AWMutableRefCount mutableRefCount = (AWMutableRefCount)RefCountTable.get(className);
            if (mutableRefCount == null) {
                mutableRefCount = new AWMutableRefCount(className);
                RefCountTable.put(className, mutableRefCount);
            }
            mutableRefCount.value++;           
        }
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWMutableRefCount

    public static void removeElement (Object object)
    {
        String className = object.getClass().getName();
        synchronized (RefCountTable) {
            AWMutableRefCount mutableRefCount = (AWMutableRefCount)RefCountTable.get(className);
            mutableRefCount.value--;
        }
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWMutableRefCount

            }
            int elementsArrayLength = elementsArray.length;
            if (elementsArrayLength > 0) {
                List vector = ListUtil.list();
                for (int index = 0; index < elementsArrayLength; index++) {
                    AWMutableRefCount refCount = (AWMutableRefCount)elementsArray[index];
                    if (refCount.value > 100 || refCount.value < 0) {
                        vector.add(refCount);
                    }
                }
                elementsArray = vector.toArray();
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.