public class BuilderUtils extends Object
ModelBuilder
s more easily.Modifier and Type | Class and Description |
---|---|
static interface |
BuilderUtils.Transformer<A,B> |
Constructor and Description |
---|
BuilderUtils() |
Modifier and Type | Method and Description |
---|---|
static <B> List<B> |
convertFromBuilderList(List<? extends ModelBuilder> toConvert) |
static <B> Set<B> |
convertFromBuilderSet(Set<? extends ModelBuilder> toConvert) |
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>.
|
static <A,B> Set<B> |
transform(Set<? extends A> toConvert,
BuilderUtils.Transformer<A,B> xform) |
public BuilderUtils()
public static <B> List<B> convertFromBuilderList(List<? extends ModelBuilder> toConvert)
public static <B> Set<B> convertFromBuilderSet(Set<? extends ModelBuilder> toConvert)
public static <A,B> List<B> transform(List<? extends A> toConvert, BuilderUtils.Transformer<A,B> xform)
A
- B
- toConvert
- xform
- public static <A,B> Set<B> transform(Set<? extends A> toConvert, BuilderUtils.Transformer<A,B> xform)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.