-
public interface AssignmentBuilder
-
-
Method Summary
Modifier and Type Method Description abstract Uniteq(String $self, String value)Uniteq(String $self, Object value)abstract Uniteq(String $self, Assignee assignee)abstract Uniteq(String $self, List<String> strings)Uniteq(String $self, AssigneeBuilder assigneeBuilder)UnitnotEmpty(List<?> $self, Function0<Unit> block)A common pattern is to not add statements if a list is empty. UnitnotEmpty(Map<?, ?> $self, Function0<Unit> block)A common pattern is to not add statements if a map is empty. <T extends Any, R extends Any> RnotNullOrEmpty(List<T> $self, Function0<R> default, Function1<List<T>, R> block)Calls the specified function block with thisvalue as its argument and returns its result if this nullable list is either null or empty.<R extends Any> RnotNullOrBlank(String $self, Function0<R> default, Function1<String, R> block)Calls the specified function block with thisvalue as its argument and returns its result if this nullable string is either null or empty or consists solely of whitespace characters.-
-
Method Detail
-
eq
Unit eq(String $self, AssigneeBuilder assigneeBuilder)
-
notEmpty
Unit notEmpty(List<?> $self, Function0<Unit> block)
A common pattern is to not add statements if a list is empty. This function only executes
blockif the given list is not empty.
-
notEmpty
Unit notEmpty(Map<?, ?> $self, Function0<Unit> block)
A common pattern is to not add statements if a map is empty. This function only executes
blockif the given map is not empty.
-
notNullOrEmpty
<T extends Any, R extends Any> R notNullOrEmpty(List<T> $self, Function0<R> default, Function1<List<T>, R> block)
-
-
-
-