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

com.github.jmkgreen.morphia.utils.IndexFieldDef Maven / Gradle / Ivy

There is a newer version: 1.2.3
Show newest version
package com.github.jmkgreen.morphia.utils;
@Deprecated
public class IndexFieldDef {
	String field;
	IndexDirection dir;

	/** Creates an ascending index of the field. */
	public IndexFieldDef(String field) {
		this(field, IndexDirection.ASC);
	}

	public IndexFieldDef(String field, IndexDirection dir) {
		this.field = field; this.dir = dir;
	}
	
	public String getField() {return field;}
	public IndexDirection getDirection() {return dir;}

	@Override
	public String toString() {
		return field + ":" + dir;
	}
	
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy