Class TimeValueExpr

java.lang.Object
org.n52.svalbard.odata.core.expr.temporal.TimeValueExpr
All Implemented Interfaces:
ODataExpr, Expr, TemporalExpr

public class TimeValueExpr extends Object implements TemporalExpr
Holds a TimeValue directly or reference to a property containing TimeValue
  • Constructor Details

    • TimeValueExpr

      public TimeValueExpr(String value)
      Creates a new ValueExpr.
      Parameters:
      value - the value
    • TimeValueExpr

      public TimeValueExpr(TimeInstant value)
  • Method Details

    • getTime

      public Object getTime()
      Gets the value.
      Returns:
      the value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • accept

      public <T, X extends Throwable> T accept(ExprVisitor<T,X> visitor) throws X
      Description copied from interface: Expr
      Accepts visitor for this expression.
      Specified by:
      accept in interface Expr
      Type Parameters:
      T - the visitor's return type
      X - the exception type the visitor may throw
      Parameters:
      visitor - the visitor
      Returns:
      the result of the visit
      Throws:
      X - if the visitor fails to visit this expression
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object