Code example for Multiset

Methods: add

0
 
 
    private static final Multiset DebugRecording = com.google.common.collect.HashMultiset.create();
 
    public static void recordDebug(Object value) { 
        DebugRecording.add(value);
    } 
 
    public static void recordDebug(LWComponent c) {
        //final String type = c.getClass().getName(); 
        final String type = c.getComponentTypeLabel();
        if (c.getTypeToken() != null && c.getTypeToken() != c.getClass())
            recordDebug(type + ":" + c.getTypeToken());
        else 
            recordDebug(type);
    } 
     
     
    public static String getDebug() {
        return DebugRecording.toString();