All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.anwen.mongo.enums.SpecialConditionEnum Maven / Gradle / Ivy

There is a newer version: 2.1.5
Show newest version
package com.anwen.mongo.enums;

public enum SpecialConditionEnum {


    OR("$or"),

    AND("$and"),

    NOR("$nor"),

    SET("$set"),

    INC("$inc"),

    PUSH("$push"),

    EACH("$each"),

    TYPE("$type"),

    IN("$in"),

    EQ("$eq"),

    ELEM_MATCH("$elemMatch"),

    REGEX("$regex"),

    TEXT("$text"),

    SEARCH("$search")

    ;


    private final String condition;

    public String getCondition() {
        return condition;
    }

    public String getSubCondition(){
        return condition.substring(1);
    }

    SpecialConditionEnum(String condition) {
        this.condition = condition;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy