org.thymeleaf.util
Class SetUtils

Object
  extended by org.thymeleaf.util.SetUtils

public final class SetUtils
extends Object

Since:
1.0
Author:
Daniel Fernández

Method Summary
static boolean contains(Set<?> target, Object element)
           
static boolean containsAll(Set<?> target, Collection<?> elements)
           
static boolean containsAll(Set<?> target, Object[] elements)
           
static boolean isEmpty(Set<?> target)
           
static
<X> Set<X>
singletonSet(X element)
           
static int size(Set<?> target)
           
static Set<?> toSet(Object target)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toSet

public static Set<?> toSet(Object target)

size

public static int size(Set<?> target)

isEmpty

public static boolean isEmpty(Set<?> target)

contains

public static boolean contains(Set<?> target,
                               Object element)

containsAll

public static boolean containsAll(Set<?> target,
                                  Object[] elements)

containsAll

public static boolean containsAll(Set<?> target,
                                  Collection<?> elements)

singletonSet

public static <X> Set<X> singletonSet(X element)


Copyright © 2012 The THYMELEAF team. All Rights Reserved.