Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public org.neo4j.values.AnyValue apply(org.neo4j.kernel.api.proc.Context ctx, org.neo4j.values.AnyValue[] input) throws org.neo4j.internal.kernel.api.exceptions.ProcedureException
            public override AnyValue Apply(Context ctx, AnyValue[] input)
            {
                if (input != null && input.Length == 1)
                {
                    if (input[0] is IntegralValue)
                    {
                        IntegralValue milliseconds = ( IntegralValue )input[0];
                        return(DateTimeValue.ofEpochMillis(milliseconds));
                    }
                }
                throw new ProcedureException(Org.Neo4j.Kernel.Api.Exceptions.Status_Procedure.ProcedureCallFailed, "Invalid call signature for " + this.GetType().Name + ": Provided input was " + Arrays.ToString(input));
            }
Exemplo n.º 2
0
 public abstract int CompareTo(IntegralValue other);
Exemplo n.º 3
0
 public virtual T Visit(IntegralValue node)
 {
     return(Visit((ConstantValue)node));
 }
Exemplo n.º 4
0
 public override bool Visit(IntegralValue node)
 {
     Visit((ConstantValue)node);
     return(true);
 }