1 /* ---------------------------------------------------------------------------- 2 * This file was automatically generated by SWIG (http://www.swig.org). 3 * Version 3.0.13 4 * 5 * Do not make changes to this file unless you know what you are doing--modify 6 * the SWIG interface file instead. 7 * ----------------------------------------------------------------------------- */ 8 9 package org.xapian; 10 11 public class DateRangeProcessor extends RangeProcessor { 12 private transient long swigCPtr; 13 DateRangeProcessor(long cPtr, boolean cMemoryOwn)14 protected DateRangeProcessor(long cPtr, boolean cMemoryOwn) { 15 super(XapianJNI.DateRangeProcessor_SWIGUpcast(cPtr), cMemoryOwn); 16 swigCPtr = cPtr; 17 } 18 getCPtr(DateRangeProcessor obj)19 protected static long getCPtr(DateRangeProcessor obj) { 20 return (obj == null) ? 0 : obj.swigCPtr; 21 } 22 finalize()23 protected void finalize() { 24 delete(); 25 } 26 delete()27 public synchronized void delete() { 28 if (swigCPtr != 0) { 29 if (swigCMemOwn) { 30 swigCMemOwn = false; 31 XapianJNI.delete_DateRangeProcessor(swigCPtr); 32 } 33 swigCPtr = 0; 34 } 35 super.delete(); 36 } 37 DateRangeProcessor(int slot_, long flags_, int epoch_year_)38 public DateRangeProcessor(int slot_, long flags_, int epoch_year_) { 39 this(XapianJNI.new_DateRangeProcessor__SWIG_0(slot_, flags_, epoch_year_), true); 40 } 41 DateRangeProcessor(int slot_, long flags_)42 public DateRangeProcessor(int slot_, long flags_) { 43 this(XapianJNI.new_DateRangeProcessor__SWIG_1(slot_, flags_), true); 44 } 45 DateRangeProcessor(int slot_)46 public DateRangeProcessor(int slot_) { 47 this(XapianJNI.new_DateRangeProcessor__SWIG_2(slot_), true); 48 } 49 DateRangeProcessor(int slot_, String str_, long flags_, int epoch_year_)50 public DateRangeProcessor(int slot_, String str_, long flags_, int epoch_year_) { 51 this(XapianJNI.new_DateRangeProcessor__SWIG_3(slot_, str_, flags_, epoch_year_), true); 52 } 53 DateRangeProcessor(int slot_, String str_, long flags_)54 public DateRangeProcessor(int slot_, String str_, long flags_) { 55 this(XapianJNI.new_DateRangeProcessor__SWIG_4(slot_, str_, flags_), true); 56 } 57 DateRangeProcessor(int slot_, String str_)58 public DateRangeProcessor(int slot_, String str_) { 59 this(XapianJNI.new_DateRangeProcessor__SWIG_5(slot_, str_), true); 60 } 61 apply(String begin, String end)62 public Query apply(String begin, String end) { 63 return new Query(XapianJNI.DateRangeProcessor_apply(swigCPtr, this, begin, end), true); 64 } 65 66 } 67