org.kuali.rice.krms.api.repository
Class BuilderUtils
java.lang.Object
org.kuali.rice.krms.api.repository.BuilderUtils
public class BuilderUtils
- extends Object
Utilities for implementing ModelBuilder
s more easily.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuilderUtils
public BuilderUtils()
convertFromBuilderList
public static <B> List<B> convertFromBuilderList(List<? extends ModelBuilder> toConvert)
convertFromBuilderSet
public static <B> Set<B> convertFromBuilderSet(Set<? extends ModelBuilder> toConvert)
transform
public static <A,B> List<B> transform(List<? extends A> toConvert,
BuilderUtils.Transformer<A,B> xform)
- This method is useful for converting a List<? extends BlahContract> to a
List<Blah.Builder>. You'll just need to implement Transformer to use it.
- Type Parameters:
A
- B
- - Parameters:
toConvert
- xform
-
- Returns:
transform
public static <A,B> Set<B> transform(Set<? extends A> toConvert,
BuilderUtils.Transformer<A,B> xform)
Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.