Package org.jboss.windup.util
Class Util
- java.lang.Object
-
- org.jboss.windup.util.Util
-
public class Util extends Object
- Author:
- Ondrej Zizka
-
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TgetSingle(Iterable<T> it)Returns a single item from the Iterator.
-
-
-
Field Detail
-
NL
public static final String NL
-
-
Method Detail
-
getSingle
public static final <T> T getSingle(Iterable<T> it)
Returns a single item from the Iterator. If there's none, returns null. If there are more, throws an IllegalStateException.- Throws:
IllegalStateException
-
-