1 8 9 package com.sleepycat.je.dbi; 10 11 15 public class GetMode { 16 private String name; 17 private boolean forward; 18 19 private GetMode(String name, boolean forward) { 20 this.name = name; 21 this.forward = forward; 22 } 23 24 public static final GetMode NEXT = new GetMode("NEXT", true); 25 public static final GetMode PREV = new GetMode("PREV", false); 26 public static final GetMode NEXT_DUP = new GetMode("NEXT_DUP", true); 27 public static final GetMode PREV_DUP = new GetMode("PREV_DUP", false); 28 public static final GetMode NEXT_NODUP = new GetMode("NEXT_NODUP", true); 29 public static final GetMode PREV_NODUP = new GetMode("PREV_NODUP", false); 30 31 public final boolean isForward() { 32 return forward; 33 } 34 35 public String toString() { 36 return name; 37 } 38 } 39 | Popular Tags |