Examples of firstKey()


Examples of org.apache.commons.collections.map.LinkedMap.firstKey()

       
        synchronized (events) {
            event.retrieveIndex();
            events.put(new Long(event.getIndex()), event);
            while (events.size() > EVENTQUEUE_MAX_SIZE) {
                events.remove(events.firstKey());
            }
        }
       
       
    }
View Full Code Here

Examples of org.apache.commons.collections.map.LinkedMap.firstKey()

                    Long lastProcessedIndex = new Long(sessionContext.getLastProcessedEventIndex());
                    if (list.containsKey(lastProcessedIndex)) {
                        startIndex = (Long) list.nextKey(lastProcessedIndex);
                    }
                    else {
                        startIndex = (Long) list.firstKey();
                    }
                   
                    // Set start index as WebTML option
                    tag.getStatus().setOption(Base.OPTION_PORTLET_EVENT_STARTINDEX, new Long(sessionContext.getLastProcessedEventIndex()), null);
                   
View Full Code Here

Examples of org.apache.commons.collections15.OrderedBidiMap.firstKey()

    //-----------------------------------------------------------------------
    public void testFirstKey() {
        resetEmpty();
        OrderedBidiMap bidi = (OrderedBidiMap) map;
        try {
            bidi.firstKey();
            fail();
        } catch (NoSuchElementException ex) {
        }

        resetFull();
View Full Code Here

Examples of org.apache.commons.collections15.OrderedMap.firstKey()

    //-----------------------------------------------------------------------
    public void testFirstKey() {
        resetEmpty();
        OrderedMap ordered = (OrderedMap) map;
        try {
            ordered.firstKey();
            fail();
        } catch (NoSuchElementException ex) {
        }

        resetFull();
View Full Code Here

Examples of org.ardverk.dht.storage.Index.Values.firstKey()

    final int maxCount = 6;
   
    KUID marker = CollectionUtils.nth(dst, m);
    Values values = index.values(key, marker, maxCount);
   
    TestCase.assertEquals(marker, values.firstKey());
    TestCase.assertTrue(values.size() <= maxCount);
  }
}
View Full Code Here

Examples of org.dmd.dms.generated.types.DmcTypeIntegerToStringMAP.firstKey()

    public Integer getIntToStringMAPFirstKey(){
        DmcTypeIntegerToStringMAP attr = (DmcTypeIntegerToStringMAP) get(DmtDMSAG.__intToStringMAP);
        if (attr == null)
            return(null);

        return(attr.firstKey());
    }

    /**
     * Adds another intToStringMAP value.
     * @param value A value compatible with IntegerToString
View Full Code Here

Examples of org.dmd.dms.generated.types.DmcTypeStringToStringMAP.firstKey()

    public String getTmStringFirstKey(){
        DmcTypeStringToStringMAP attr = (DmcTypeStringToStringMAP) get(DmtDMSAG.__tmString);
        if (attr == null)
            return(null);

        return(attr.firstKey());
    }

    /**
     * Adds another tmString value.
     * @param value A value compatible with StringToString
View Full Code Here

Examples of org.dmd.dmt.shared.generated.types.DmcTypeObjWithRefsREFMAP.firstKey()

    public StringName getTmNamedObjFirstKey(){
        DmcTypeObjWithRefsREFMAP attr = (DmcTypeObjWithRefsREFMAP) get(DmtDMSAG.__tmNamedObj);
        if (attr == null)
            return(null);

        return(attr.firstKey());
    }

    /**
     * Adds another tmNamedObj value.
     * @param value A value compatible with ObjWithRefs
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.generated.types.DmcTypeEventREFMAP.firstKey()

    public CamelCaseName getFiresEventFirstKey(){
        DmcTypeEventREFMAP attr = (DmcTypeEventREFMAP) get(MvwDMSAG.__firesEvent);
        if (attr == null)
            return(null);

        return(attr.firstKey());
    }

    /**
     * Adds another firesEvent value.
     * @param value A value compatible with Event
View Full Code Here

Examples of org.dmd.mvw.tools.mvwgenerator.generated.types.DmcTypeEventREFMAP.firstKey()

    public CamelCaseName getHandlesEventFirstKey(){
        DmcTypeEventREFMAP attr = (DmcTypeEventREFMAP) get(MvwDMSAG.__handlesEvent);
        if (attr == null)
            return(null);

        return(attr.firstKey());
    }

    /**
     * Adds another handlesEvent value.
     * @param value A value compatible with Event
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.