// Path: src/main/java/de/danielbasedow/prospecter/core/Token.java
// public class Token<T> {
//     private final T token;
//     private final MatchCondition condition;
// 
//     public Token(T token) {
//         this(token, MatchCondition.NONE);
//     }
// 
//     public Token(T token, MatchCondition condition) {
//         this.token = token;
//         this.condition = condition;
//     }
// 
//     public T getToken() {
//         return token;
//     }
// 
//     public int hashCode() {
//         return token.hashCode();
//     }
// 
//     public boolean equals(Object compare) {
//         if (compare instanceof Token) {
//             return token.equals(((Token) compare).getToken());
//         }
//         return false;
//     }
// 
//     public MatchCondition getCondition() {
//         return condition;
//     }
// }
// 
// Path: src/main/java/de/danielbasedow/prospecter/core/query/build/ClauseNode.java
// public interface ClauseNode {
//     public boolean isLeaf();
// }


import de.danielbasedow.prospecter.core.Token;
import de.danielbasedow.prospecter.core.query.build.ClauseNode;
package de.danielbasedow.prospecter.core.query;


/**
 * A Condition is represented by a field name and token combination.
 */
public class Condition implements ClauseNode {
    private final String fieldName;
// Path: src/main/java/de/danielbasedow/prospecter/core/Token.java
// public class Token<T> {
//     private final T token;
//     private final MatchCondition condition;
// 
//     public Token(T token) {
//         this(token, MatchCondition.NONE);
//     }
// 
//     public Token(T token, MatchCondition condition) {
//         this.token = token;
//         this.condition = condition;
//     }
// 
//     public T getToken() {
//         return token;
//     }
// 
//     public int hashCode() {
//         return token.hashCode();
//     }
// 
//     public boolean equals(Object compare) {
//         if (compare instanceof Token) {
//             return token.equals(((Token) compare).getToken());
//         }
//         return false;
//     }
// 
//     public MatchCondition getCondition() {
//         return condition;
//     }
// }
// 
// Path: src/main/java/de/danielbasedow/prospecter/core/query/build/ClauseNode.java
// public interface ClauseNode {
//     public boolean isLeaf();
// }


// Path: src/main/java/de/danielbasedow/prospecter/core/query/Condition.java
import de.danielbasedow.prospecter.core.Token;
import de.danielbasedow.prospecter.core.query.build.ClauseNode;

package de.danielbasedow.prospecter.core.query;


/**
 * A Condition is represented by a field name and token combination.
 */
public class Condition implements ClauseNode {
    private final String fieldName;
    private final Token token;