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

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

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

origin: org.rosuda.REngine/REngine

/** returns all keys of the list
 * @return array containing all keys or <code>null</code> if list unnamed */
public String[] keys() {
if (names==null) return null;
int i = 0;
String k[] = new String[names.size()];
while (i < k.length) { k[i] = keyAt(i); i++; };
return k;
}
origin: net.rforge/REngine

/** returns all keys of the list
 * @return array containing all keys or <code>null</code> if list unnamed */
public String[] keys() {
if (names==null) return null;
int i = 0;
String k[] = new String[names.size()];
while (i < k.length) { k[i] = keyAt(i); i++; };
return k;
}
origin: org.rosuda.REngine/REngine

  public String toDebugString() {
    StringBuffer sb = new StringBuffer(super.toDebugString()+"{");
    int i = 0;
    while (i < payload.size() && i < maxDebugItems) {
      if (i>0) sb.append(",\n");
      String name = payload.keyAt(i);
      if (name!=null) sb.append(name+"=");
      sb.append(payload.at(i).toDebugString());
      i++;
    }
    if (i < payload.size()) sb.append(",..");
    return sb.toString()+"}";
  }
}
origin: net.rforge/REngine

  public String toDebugString() {
    StringBuffer sb = new StringBuffer(super.toDebugString()+"{");
    int i = 0;
    while (i < payload.size() && i < maxDebugItems) {
      if (i>0) sb.append(",\n");
      String name = payload.keyAt(i);
      if (name!=null) sb.append(name+"=");
      sb.append(payload.at(i).toDebugString());
      i++;
    }
    if (i < payload.size()) sb.append(",..");
    return sb.toString()+"}";
  }
}
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: 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: 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/Rserve

if (rxt==XT_LIST_TAG) {
  int pl=l;
  String s = lst.keyAt(i);
  l+=4; // header for a symbol
  l+=(s==null)?1:(s.length()+1);
origin: org.rosuda.REngine/Rserve

if (rxt==XT_LIST_TAG) {
  int pl=l;
  String s = lst.keyAt(i);
  l+=4; // header for a symbol
  l+=(s==null)?1:(s.length()+1);
origin: org.rosuda.REngine/Rserve

io = new REXPFactory(x).getBinaryRepresentation(buf, io);
if (rxt == XT_LIST_TAG || rxt == XT_LANG_TAG)
  io = new REXPFactory(new REXPSymbol(lst.keyAt(i))).getBinaryRepresentation(buf, io);
i++;
origin: net.rforge/Rserve

io = new REXPFactory(x).getBinaryRepresentation(buf, io);
if (rxt == XT_LIST_TAG || rxt == XT_LANG_TAG)
  io = new REXPFactory(new REXPSymbol(lst.keyAt(i))).getBinaryRepresentation(buf, io);
i++;
org.rosuda.REngineRListkeyAt

Popular methods of RList

    Popular in Java

    • Reading from database using SQL prepared statement
    • setContentView (Activity)
    • getApplicationContext (Context)
    • getSharedPreferences (Context)
    • BorderLayout (java.awt)
      A border layout lays out a container, arranging and resizing its components to fit in five regions:
    • BufferedReader (java.io)
      Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
    • FileReader (java.io)
      A specialized Reader that reads from a file in the file system. All read requests made by calling me
    • Deque (java.util)
      A linear collection that supports element insertion and removal at both ends. The name deque is shor
    • HttpServlet (javax.servlet.http)
      Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
    • JTable (javax.swing)
    • Top 12 Jupyter Notebook extensions
    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