Package org.jdesktop.wonderland.modules.sharedstate.common.state.SharedStateComponentServerState

Examples of org.jdesktop.wonderland.modules.sharedstate.common.state.SharedStateComponentServerState.MapEntry


        List<MapEntry> out = new ArrayList<MapEntry>();

        for (Entry<String, ManagedReference<SharedMapImpl>> e :
                    recv.mapsRef.get().entrySet())
        {
            MapEntry me = new MapEntry(e.getKey());
            List<SharedDataEntry> l = new ArrayList<SharedDataEntry>();

            for (Entry<String, SharedData> de : e.getValue().get().entrySet()) {
                // if the value is transient, don't include it
                Class clazz = de.getValue().getClass();
                if (clazz.isAnnotationPresent(SharedStateTransient.class)) {
                    continue;
                }
               
                l.add(new SharedDataEntry(de.getKey(), de.getValue()));
            }

            me.setData(l.toArray(new SharedDataEntry[0]));
            out.add(me);
        }

        return out.toArray(new MapEntry[0]);
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.sharedstate.common.state.SharedStateComponentServerState.MapEntry

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.