Package java.util

Examples of java.util.LinkedHashMap$LinkedKey


     * @param e The element under which the form is keyed (e.g. "<form>" in HTML)
     * @param f The form element being stored.
     */
    protected void addForm(Element e, XhtmlForm f) {
        if (forms == null) {
            forms = new LinkedHashMap();
        }
        forms.put(e, f);
    }
View Full Code Here


    private Element _parentFormElement;

    public XhtmlForm(UserAgentCallback uac, Element e) {
        _userAgentCallback = uac;
        _buttonGroups = new HashMap();
        _componentCache = new LinkedHashMap();
        _parentFormElement = e;
    }
View Full Code Here

public class HttpHeaders {
    private Map map;

    public HttpHeaders() {
        this.map = new LinkedHashMap();
    }
View Full Code Here

         * method / RelationEntryHolder
         * @param relationName The relation to look for
         * @return The map
         */
        private LinkedHashMap getMapFor(String relationName) {
            LinkedHashMap retVal;
            retVal = (LinkedHashMap) relations.get(relationName);

            if (retVal == null) {
                retVal = new LinkedHashMap();
                relations.put(relationName, retVal);
            }

            return retVal;
        }
View Full Code Here

            return retVal;
        }

        public void manage(EjbRelationTag relTag, JavaMethod method, JavaClass sourceBean) {
            LinkedHashMap mapFor = getMapFor(relTag.getName_());
            RelationEntryHolder entryHolder;

            if (mapFor.containsKey(method)) {
                entryHolder = (RelationEntryHolder) mapFor.get(method);

                if (log.isDebugEnabled()) {
                    log.debug("Existing relation entry pair for relation named '" + relTag.getName_() + "' found at " +
                        tagToString(relTag));
                }
            } else {
                if (log.isDebugEnabled()) {
                    log.debug("A new relation entry pair for relation named '" + relTag.getName_() +
                        "' is being created at " + tagToString(relTag));
                }

                entryHolder = new RelationEntryHolder(relTag, method);
                mapFor.put(method, entryHolder);
            }

            entryHolder.addSourceBean(sourceBean);
        }
View Full Code Here

         * @param relationName The relation name
         * @return The list of found relations (empty array if not found)
         */
        public Relation[] getRelationsByName(String relationName) {
            Collection retVal = new ArrayList();
            LinkedHashMap mapFor = (LinkedHashMap) relations.get(relationName);

            if (mapFor != null) {
                retVal.addAll(validateAndCreateRelations(relationName, mapFor));
            }

View Full Code Here

    public FIFO(int cacheSize) {
        if (cacheSize <= 0) {
            throw new IllegalArgumentException("cacheSize must be larger than 0");
        } else {
            this.sizeBoundary = cacheSize;
            this.map = new LinkedHashMap(cacheSize + 1, 1, false) {
                protected boolean removeEldestEntry(Map.Entry eldest) {
                    return size() > sizeBoundary;
                }
            };
        }
View Full Code Here

    public MeasurableLRU(long sizeBoundaryInBytes) {
        if (sizeBoundaryInBytes <= 0) {
            throw new IllegalArgumentException("cacheSize must be larger than 0");
        } else {
            this.sizeBoundaryInBytes = sizeBoundaryInBytes;
            this.map = new LinkedHashMap(DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR, true);
        }
    }
View Full Code Here

    public LRU(int cacheSize) {
        if (cacheSize <= 0) {
            throw new IllegalArgumentException("cacheSize must be larger than 0");
        } else {
            this.sizeBoundary = cacheSize;
            this.map = new LinkedHashMap(cacheSize + 1, 1, true) {
                protected boolean removeEldestEntry(Map.Entry eldest) {
                    return size() > sizeBoundary;
                }
            };
        }
View Full Code Here

    public MeasurableFIFO(long sizeBoundaryInBytes) {
        if (sizeBoundaryInBytes <= 0) {
            throw new IllegalArgumentException("cacheSize must be larger than 0");
        } else {
            this.sizeBoundaryInBytes = sizeBoundaryInBytes;
            this.map = new LinkedHashMap(DEFAULT_INITIAL_CAPACITY, DEFAULT_LOAD_FACTOR, false);
        }
    }
View Full Code Here

TOP

Related Classes of java.util.LinkedHashMap$LinkedKey

Copyright © 2018 www.massapicom. 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.