Class RNull

java.lang.Object
uk.co.terminological.rjava.types.RNull
All Implemented Interfaces:
Serializable, RObject

public class RNull extends Object implements RObject
In general you won;t see this class. Its possible to do things in R like x=list(a=NULL) in which case the null value needs a placeholder in java. In general it is not like a java null which is used more like an R NA value. For methods that return nothing use java void and not this class.
Version:
$Id: $Id
Author:
terminological
See Also:
  • Constructor Details

    • RNull

      public RNull()

      Constructor for RNull.

  • Method Details

    • toString

      public String toString()

      toString.

      Overrides:
      toString in class Object
      Returns:
      a String object
    • rCode

      public String rCode()
      Derives the R code representation of this object. This is used for some objects as a wire serialisation (RList and RNamedList) to copy them accross to R. Other data types tend to use the raw primitives to copy.
      Specified by:
      rCode in interface RObject
      Returns:
      a string that can be parsed as R code.
    • accept

      public <X> X accept(RObjectVisitor<X> visitor)

      accept.

      Specified by:
      accept in interface RObject
      Type Parameters:
      X - a X class
      Parameters:
      visitor - a RObjectVisitor object
      Returns:
      a X object
    • equals

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