it.unimi.di.mg4j.query.nodes
Class Prefix
java.lang.Object
it.unimi.di.mg4j.query.nodes.Prefix
- All Implemented Interfaces:
- Query, Serializable
public class Prefix
- extends Object
- implements Query
A node representing a set of terms defined by a common prefix.
- Author:
- Sebastiano Vigna
- See Also:
- Serialized Form
Field Summary |
CharSequence |
prefix
The common prefix of the set of terms represented by this node. |
prefix
public final CharSequence prefix
- The common prefix of the set of terms represented by this node.
Prefix
public Prefix(CharSequence prefix)
toString
public String toString()
- Overrides:
toString
in class Object
accept
public <T> T accept(QueryBuilderVisitor<T> visitor)
throws QueryBuilderVisitorException
- Description copied from interface:
Query
- Accepts a visitor.
- Specified by:
accept
in interface Query
- Parameters:
visitor
- the visitor.
- Returns:
- the result of the visit, or
null
if the visit should stop.
- Throws:
QueryBuilderVisitorException
- See Also:
Query
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object