Tabnine Logo
RList.add
Code IndexAdd Tabnine to your IDE (free)

How to use
add
method
in
org.rosuda.REngine.RList

Best Java code snippets using org.rosuda.REngine.RList.add (Showing top 13 results out of 315)

origin: org.rosuda.REngine/REngine

public void insertElementAt(Object obj, int index) { add(index, obj); }
public void addElement(Object obj) { add(obj); }
origin: org.rosuda.REngine/REngine

public void putAll(Map t) {
if (t==null) return;
// NOTE: this if branch is dead since RList cannot inherit from Map
if (t instanceof RList) { // we need some more sophistication for RLists as they may have null-names which we append
  RList l = (RList) t;
  if (names==null) {
  addAll(l);
  return;
  }
  int n = l.size();
  int i = 0;
  while (i < n) {
  String key = l.keyAt(i);
  if (key==null)
    add(l.at(i));
  else
    put(key, l.at(i));
  i++;
  }
} else {
  Set ks = t.keySet();
  Iterator i = ks.iterator();
  while (i.hasNext()) {
  Object key = i.next();
  put(key, t.get(key));
  }
}
}
origin: net.rforge/REngine

public void putAll(Map t) {
if (t==null) return;
// NOTE: this if branch is dead since RList cannot inherit from Map
if (t instanceof RList) { // we need some more sophistication for RLists as they may have null-names which we append
  RList l = (RList) t;
  if (names==null) {
  addAll(l);
  return;
  }
  int n = l.size();
  int i = 0;
  while (i < n) {
  String key = l.keyAt(i);
  if (key==null)
    add(l.at(i));
  else
    put(key, l.at(i));
  i++;
  }
} else {
  Set ks = t.keySet();
  Iterator i = ks.iterator();
  while (i.hasNext()) {
  Object key = i.next();
  put(key, t.get(key));
  }
}
}
origin: org.rosuda.REngine/REngine

public void addElement(Object obj) { add(obj); }
public void removeElementAt(int index) { remove(index); }
origin: net.rforge/REngine

public void putAll(RList t) {
if (t == null) return;
RList l = (RList) t;
if (names==null) {
  addAll(l);
  return;
}
int n = l.size();
int i = 0;
while (i < n) {
  String key = l.keyAt(i);
  if (key == null)
  add(l.at(i));
  else
  put(key, l.at(i));
  i++;
}
}

origin: net.rforge/REngine

public void insertElementAt(Object obj, int index) { add(index, obj); }
public void addElement(Object obj) { add(obj); }
origin: org.rosuda.REngine/REngine

public void putAll(RList t) {
if (t == null) return;
RList l = (RList) t;
if (names==null) {
  addAll(l);
  return;
}
int n = l.size();
int i = 0;
while (i < n) {
  String key = l.keyAt(i);
  if (key == null)
  add(l.at(i));
  else
  put(key, l.at(i));
  i++;
}
}

origin: net.rforge/REngine

public void addElement(Object obj) { add(obj); }
public void removeElementAt(int index) { remove(index); }
origin: org.rosuda.REngine/REngine

public static REXP asCall(REXP what, REXP[] args) {
  RList l = new RList();
  l.add(what);
  for (int i = 0; i < args.length; i++) l.add(args[i]);
  return new REXPLanguage(l);
}
public static REXP asCall(String name, REXP[] args) {
origin: net.rforge/REngine

public Object put(Object key, Object value) {
if (key==null) {
  add(value);
  return null;
}
if (names != null) {
  int p = names.indexOf(key);
  if (p >= 0)
  return super.set(p, value);
}
int i = size();
super.add(value);
if (names==null)
  names = new Vector(i+1);
while (names.size() < i) names.add(null);
names.add(key);
return null;
}
origin: org.rosuda.REngine/REngine

public Object put(Object key, Object value) {
if (key==null) {
  add(value);
  return null;
}
if (names != null) {
  int p = names.indexOf(key);
  if (p >= 0)
  return super.set(p, value);
}
int i = size();
super.add(value);
if (names==null)
  names = new Vector(i+1);
while (names.size() < i) names.add(null);
names.add(key);
return null;
}
origin: net.rforge/Rserve

    if (nf.cont.isSymbol() || nf.cont.isString()) name = nf.cont.asString();
  if (name==null) l.add(lc.cont);
  else l.put(name, lc.cont);
o = headf.parseREXP(buf, o);
int elIndex = rootList.size();
rootList.add(headf.cont);
origin: org.rosuda.REngine/Rserve

    if (nf.cont.isSymbol() || nf.cont.isString()) name = nf.cont.asString();
  if (name==null) l.add(lc.cont);
  else l.put(name, lc.cont);
o = headf.parseREXP(buf, o);
int elIndex = rootList.size();
rootList.add(headf.cont);
org.rosuda.REngineRListadd

Popular methods of RList

    Popular in Java

    • Making http requests using okhttp
    • getApplicationContext (Context)
    • startActivity (Activity)
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • Rectangle (java.awt)
      A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
    • File (java.io)
      An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
    • String (java.lang)
    • Pattern (java.util.regex)
      Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
    • XPath (javax.xml.xpath)
      XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
    • LogFactory (org.apache.commons.logging)
      Factory for creating Log instances, with discovery and configuration features similar to that employ
    • CodeWhisperer alternatives
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now