org.apache.bval.jsr303.groups
Class GroupsComputer

java.lang.Object
  extended by org.apache.bval.jsr303.groups.GroupsComputer

public class GroupsComputer
extends Object

Description: compute group order, based on the RI behavior as to guarantee compatibility with interpretations of the spec.
Implementation is thread-safe.


Constructor Summary
GroupsComputer()
           
 
Method Summary
 Groups computeGroups(Class<?>[] groups)
          Compute groups from an array of group classes.
protected  Groups computeGroups(Collection<Class<?>> groups)
          Main compute implementation.
static Class<?>[] getDefaultGroupArray()
          Get the default group array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupsComputer

public GroupsComputer()
Method Detail

getDefaultGroupArray

public static Class<?>[] getDefaultGroupArray()
Get the default group array.

Returns:
Default.class only

computeGroups

public Groups computeGroups(Class<?>[] groups)
Compute groups from an array of group classes.

Parameters:
groups -
Returns:
Groups

computeGroups

protected Groups computeGroups(Collection<Class<?>> groups)
Main compute implementation.

Parameters:
groups -
Returns:
Groups


Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.