public class SearchCond extends AbstractSearchCond
Modifier and Type | Class and Description |
---|---|
static class |
SearchCond.Type |
Constructor and Description |
---|
SearchCond() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static SearchCond |
getAnd(List<SearchCond> conditions) |
static SearchCond |
getAnd(SearchCond left,
SearchCond right) |
Optional<AnyTypeCond> |
getAnyTypeCond() |
static SearchCond |
getLeaf(AbstractSearchCond leaf) |
<T extends AbstractSearchCond> |
getLeaf(Class<T> clazz) |
SearchCond |
getLeft() |
static SearchCond |
getNotLeaf(AbstractSearchCond leaf) |
static SearchCond |
getOr(List<SearchCond> conditions) |
static SearchCond |
getOr(SearchCond left,
SearchCond right) |
SearchCond |
getRight() |
SearchCond.Type |
getType() |
String |
hasAnyTypeCond()
Not a simple getter: recursively scans the search condition tree.
|
int |
hashCode() |
boolean |
isValid() |
String |
toString() |
public static SearchCond getLeaf(AbstractSearchCond leaf)
public static SearchCond getNotLeaf(AbstractSearchCond leaf)
public static SearchCond getAnd(SearchCond left, SearchCond right)
public static SearchCond getAnd(List<SearchCond> conditions)
public static SearchCond getOr(SearchCond left, SearchCond right)
public static SearchCond getOr(List<SearchCond> conditions)
public Optional<AnyTypeCond> getAnyTypeCond()
public String hasAnyTypeCond()
NULL
if no type condition was foundpublic <T extends AbstractSearchCond> Optional<T> getLeaf(Class<T> clazz)
public SearchCond getLeft()
public SearchCond getRight()
public SearchCond.Type getType()
public boolean isValid()
isValid
in class AbstractSearchCond
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.