com.almworks.jira.structure.api.util.La Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structure-api Show documentation
Show all versions of structure-api Show documentation
Public API for the Structure Plugin for JIRA
The newest version!
package com.almworks.jira.structure.api.util;
import com.almworks.integers.*;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.lang.reflect.Array;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.function.Function;
import java.util.function.Predicate;
/**
* La
is a utility generic-purpose class for functional expressions.
*
* @author Igor Sereda
*/
public abstract class La implements Function, Predicate {
private static final La SELF = new La() {
public Object la(Object argument) {
return argument;
}
};
private static final La TRUE = new La() {
public Object la(Object argument) {
return Boolean.TRUE;
}
};
private static final La FALSE = new La() {
public Object la(Object argument) {
return Boolean.FALSE;
}
};
private static final La NOT_NULL = new La