org.structr.rest.serialization.html.attr.If Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of structr-rest Show documentation
Show all versions of structr-rest Show documentation
Structr is an open source framework based on the popular Neo4j graph database.
package org.structr.rest.serialization.html.attr;
import org.neo4j.helpers.Predicate;
import org.structr.rest.serialization.html.Attr;
/**
*
* @author Christian Morgner
*/
public class If extends Conditional {
public If(final boolean condition, final Attr attr) {
super(new Predicate() {
@Override
public boolean accept(Context item) {
return condition;
}
}, attr);
}
}