Codota Logo
SUTime$TemporalOp
Code IndexAdd Codota to your IDE (free)

How to use
SUTime$TemporalOp
in
edu.stanford.nlp.time

Best Java code snippets using edu.stanford.nlp.time.SUTime$TemporalOp (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: stanfordnlp/CoreNLP

if (resolvedThis instanceof Time) {
 if (((Time) resolvedThis).compareTo(t) >= 0) {
  return PREV.apply(arg1, arg2);
origin: stanfordnlp/CoreNLP

public int hashCode() {
 int result = base != null ? base.hashCode() : 0;
 result = 31 * result + (tempOp != null ? tempOp.hashCode() : 0);
 result = 31 * result + (tempArg != null ? tempArg.hashCode() : 0);
 result = 31 * result + opFlags;
 return result;
}
origin: stanfordnlp/CoreNLP

@Override
public Time add(Duration offset) {
 //if (getTimeLabel() != null) {
 if (getStandardTemporalType() != null) {
  // Time has some meaning, keep as is
  return new RelativeTime(this, TemporalOp.OFFSET_EXACT, offset);
 } else {
  // Some other time, who know what it means
  // Try to do offset
  return new InexactTime(this, (Time) TemporalOp.OFFSET_EXACT.apply(base, offset), duration, (Range) TemporalOp.OFFSET_EXACT.apply(range, offset));
 }
}
origin: com.guokr/stan-cn-com

public Temporal apply(Temporal... args) {
 if (args.length == 2) {
  return apply(args[0], args[1]);
 }
 throw new UnsupportedOperationException("apply(Temporal...) not implemented for TemporalOp " + this);
}
origin: edu.stanford.nlp/corenlp

public Temporal apply(Temporal... args) {
 if (args.length == 2) {
  return apply(args[0], args[1]);
 }
 throw new UnsupportedOperationException("apply(Temporal...) not implemented for TemporalOp " + this);
}
origin: edu.stanford.nlp/corenlp

public Time add(Duration offset) {
 if (getTimeLabel() != null) {
  // Time has some meaning, keep as is
  return new RelativeTime(this, TemporalOp.OFFSET, offset);
 } else {
  // Some other time, who know what it means
  // Try to do offset
  return new InexactTime(this, (Time) TemporalOp.OFFSET.apply(base, offset), duration, (Range) TemporalOp.OFFSET.apply(range, offset));
 }
}
origin: com.guokr/stan-cn-com

public Time add(Duration offset) {
 //if (getTimeLabel() != null) {
 if (getStandardTemporalType() != null) {
  // Time has some meaning, keep as is
  return new RelativeTime(this, TemporalOp.OFFSET_EXACT, offset);
 } else {
  // Some other time, who know what it means
  // Try to do offset
  return new InexactTime(this, (Time) TemporalOp.OFFSET_EXACT.apply(base, offset), duration, (Range) TemporalOp.OFFSET_EXACT.apply(range, offset));
 }
}
origin: edu.stanford.nlp/corenlp

public Temporal apply(Temporal arg1, Temporal arg2) {
 return apply(arg1, arg2, 0);
}
origin: edu.stanford.nlp/stanford-corenlp

public Temporal next() {
 Duration per = getPeriod();
 if (per != null) {
  if (this instanceof Duration) {
   return new RelativeTime(new RelativeTime(TemporalOp.THIS, this, DUR_RESOLVE_TO_AS_REF), TemporalOp.OFFSET, per);
  } else {
   // return new RelativeTime(new RelativeTime(TemporalOp.THIS, this),
   // TemporalOp.OFFSET, per);
   return TemporalOp.OFFSET.apply(this, per);
  }
 }
 return null;
}
origin: edu.stanford.nlp/stanford-corenlp

public Temporal prev() {
 Duration per = getPeriod();
 if (per != null) {
  if (this instanceof Duration) {
   return new RelativeTime(new RelativeTime(TemporalOp.THIS, this, DUR_RESOLVE_FROM_AS_REF), TemporalOp.OFFSET, per.multiplyBy(-1));
  } else {
   // return new RelativeTime(new RelativeTime(TemporalOp.THIS, this),
   // TemporalOp.OFFSET, per.multiplyBy(-1));
   return TemporalOp.OFFSET.apply(this, per.multiplyBy(-1));
  }
 }
 return null;
}
origin: edu.stanford.nlp/stanford-corenlp

public Temporal apply(Temporal arg1, Temporal arg2) {
 return apply(arg1, arg2, 0);
}
origin: com.guokr/stan-cn-com

public Temporal prev() {
 Duration per = getPeriod();
 if (per != null) {
  if (this instanceof Duration) {
   return new RelativeTime(new RelativeTime(TemporalOp.THIS, this, DUR_RESOLVE_FROM_AS_REF), TemporalOp.OFFSET, per.multiplyBy(-1));
  } else {
   // return new RelativeTime(new RelativeTime(TemporalOp.THIS, this),
   // TemporalOp.OFFSET, per.multiplyBy(-1));
   return TemporalOp.OFFSET.apply(this, per.multiplyBy(-1));
  }
 }
 return null;
}
origin: com.guokr/stan-cn-com

public int hashCode() {
 int result = base != null ? base.hashCode() : 0;
 result = 31 * result + (tempOp != null ? tempOp.hashCode() : 0);
 result = 31 * result + (tempArg != null ? tempArg.hashCode() : 0);
 result = 31 * result + opFlags;
 return result;
}
origin: edu.stanford.nlp/corenlp

public Temporal prev() {
 Duration per = getPeriod();
 if (per != null) {
  if (this instanceof Duration) {
   return new RelativeTime(new RelativeTime(TemporalOp.THIS, this, DUR_RESOLVE_FROM_AS_REF), TemporalOp.OFFSET, per.multiplyBy(-1));
  } else {
   // return new RelativeTime(new RelativeTime(TemporalOp.THIS, this),
   // TemporalOp.OFFSET, per.multiplyBy(-1));
   return TemporalOp.OFFSET.apply(this, per.multiplyBy(-1));
  }
 }
 return null;
}
origin: edu.stanford.nlp/stanford-corenlp

public Temporal apply(Temporal... args) {
 if (args.length == 2) {
  return apply(args[0], args[1]);
 }
 throw new UnsupportedOperationException("apply(Temporal...) not implemented for TemporalOp " + this);
}
origin: com.guokr/stan-cn-com

public Temporal next() {
 Duration per = getPeriod();
 if (per != null) {
  if (this instanceof Duration) {
   return new RelativeTime(new RelativeTime(TemporalOp.THIS, this, DUR_RESOLVE_TO_AS_REF), TemporalOp.OFFSET, per);
  } else {
   // return new RelativeTime(new RelativeTime(TemporalOp.THIS, this),
   // TemporalOp.OFFSET, per);
   return TemporalOp.OFFSET.apply(this, per);
  }
 }
 return null;
}
origin: edu.stanford.nlp/stanford-corenlp

@Override
public Time add(Duration offset) {
 //if (getTimeLabel() != null) {
 if (getStandardTemporalType() != null) {
  // Time has some meaning, keep as is
  return new RelativeTime(this, TemporalOp.OFFSET_EXACT, offset);
 } else {
  // Some other time, who know what it means
  // Try to do offset
  return new InexactTime(this, (Time) TemporalOp.OFFSET_EXACT.apply(base, offset), duration, (Range) TemporalOp.OFFSET_EXACT.apply(range, offset));
 }
}
origin: edu.stanford.nlp/corenlp

public Temporal next() {
 Duration per = getPeriod();
 if (per != null) {
  if (this instanceof Duration) {
   return new RelativeTime(new RelativeTime(TemporalOp.THIS, this, DUR_RESOLVE_TO_AS_REF), TemporalOp.OFFSET, per);
  } else {
   // return new RelativeTime(new RelativeTime(TemporalOp.THIS, this),
   // TemporalOp.OFFSET, per);
   return TemporalOp.OFFSET.apply(this, per);
  }
 }
 return null;
}
origin: edu.stanford.nlp/corenlp

public int hashCode() {
 int result = base != null ? base.hashCode() : 0;
 result = 31 * result + (tempOp != null ? tempOp.hashCode() : 0);
 result = 31 * result + (tempArg != null ? tempArg.hashCode() : 0);
 result = 31 * result + opFlags;
 return result;
}
origin: com.guokr/stan-cn-com

public Temporal apply(Temporal arg1, Temporal arg2) {
 return apply(arg1, arg2, 0);
}
edu.stanford.nlp.timeSUTime$TemporalOp

Most used methods

  • apply
  • hashCode
  • name
  • values

Popular in Java

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • startActivity (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now