Codota Logo
RList.size
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain RList
private void myMethod () {
RList r =
  • Codota IconREngine.REXP rEXP;rEXP.asList()
  • Codota Iconnew RList()
  • Smart code suggestions by Codota
}
origin: org.rosuda.REngine/REngine

/** set key at the given index. Using this method automatically makes the list a named one even if the key is <code>null</code>. Out of range operations are undefined (currently no-ops)
 @param i index
 @param value key name */
public void setKeyAt(int i, String value) {
  if (i < 0) return;
  if (names==null)
    names = new Vector();
  if (names.size() < size()) names.setSize(size());
  if (i < size()) names.set(i, value);
}
origin: net.rforge/REngine

/** set key at the given index. Using this method automatically makes the list a named one even if the key is <code>null</code>. Out of range operations are undefined (currently no-ops)
 @param i index
 @param value key name */
public void setKeyAt(int i, String value) {
  if (i < 0) return;
  if (names==null)
    names = new Vector();
  if (names.size() < size()) names.setSize(size());
  if (i < size()) names.set(i, value);
}
origin: org.rosuda.REngine/REngine

public Object remove(int index) {
Object o = super.remove(index);
if (names != null) {
  names.remove(index);
  if (size()==0) names=null;
}
return o;
}
origin: net.rforge/REngine

public Object remove(int index) {
Object o = super.remove(index);
if (names != null) {
  names.remove(index);
  if (size()==0) names=null;
}
return o;
}
origin: org.rosuda.REngine/REngine

public boolean addAll(Collection c) {
boolean ch = super.addAll(c);
if (names==null) return ch;
int l = size();
while (names.size()<l) names.add(null);
return ch;
}
origin: org.rosuda.REngine/REngine

/** constructs an initialized, named list. The length of the contents vector determines the length of the list.
 * @param contents - an array of {@link REXP}s to use as contents of this list
 * @param names - an array of {@link String}s to use as names */
public RList(REXP[] contents, String[] names) {
this(contents);
if (names!=null && names.length>0) {
  this.names=new Vector(names.length);
  int i = 0;
  while (i < names.length) this.names.add(names[i++]);
  while (this.names.size()<size()) this.names.add(null);
}
}

origin: org.rosuda.REngine/REngine

/** constructs an initialized, named list. The size of the contents collection determines the length of the list.
 * @param contents - a {@link Collection} of {@link REXP}s to use as contents of this list
 * @param names - an {@link Collection} of {@link String}s to use as names */
public RList(Collection contents, Collection names) {
this(contents);
if (names!=null && names.size()>0) {
  this.names=new Vector(names);
  while (this.names.size()<size()) this.names.add(null);
}
}
origin: net.rforge/REngine

public boolean addAll(Collection c) {
boolean ch = super.addAll(c);
if (names==null) return ch;
int l = size();
while (names.size()<l) names.add(null);
return ch;
}
origin: net.rforge/REngine

/** constructs an initialized, named list. The length of the contents vector determines the length of the list.
 * @param contents - an array of {@link REXP}s to use as contents of this list
 * @param names - an array of {@link String}s to use as names */
public RList(REXP[] contents, String[] names) {
this(contents);
if (names!=null && names.length>0) {
  this.names=new Vector(names.length);
  int i = 0;
  while (i < names.length) this.names.add(names[i++]);
  while (this.names.size()<size()) this.names.add(null);
}
}

origin: net.rforge/REngine

/** constructs an initialized, named list. The size of the contents collection determines the length of the list.
 * @param contents - a {@link Collection} of {@link REXP}s to use as contents of this list
 * @param names - an {@link Collection} of {@link String}s to use as names */
public RList(Collection contents, Collection names) {
this(contents);
if (names!=null && names.size()>0) {
  this.names=new Vector(names);
  while (this.names.size()<size()) this.names.add(null);
}
}
origin: net.rforge/REngine

/** constructs an initialized, named list. The size of the contents collection determines the length of the list.
 * @param contents - a {@link Collection} of {@link REXP}s to use as contents of this list
 * @param names - an array of {@link String}s to use as names */
public RList(Collection contents, String[] names) {
this(contents);
if (names!=null && names.length>0) {
  this.names=new Vector(names.length);
  int i = 0;
  while (i < names.length) this.names.add(names[i++]);
  while (this.names.size()<size()) this.names.add(null);
}
}
origin: org.rosuda.REngine/REngine

/** constructs an initialized, named list. The size of the contents collection determines the length of the list.
 * @param contents - a {@link Collection} of {@link REXP}s to use as contents of this list
 * @param names - an array of {@link String}s to use as names */
public RList(Collection contents, String[] names) {
this(contents);
if (names!=null && names.length>0) {
  this.names=new Vector(names.length);
  int i = 0;
  while (i < names.length) this.names.add(names[i++]);
  while (this.names.size()<size()) this.names.add(null);
}
}
origin: net.rforge/REngine

/** get element at the specified position
@param i index
@return value at the index or <code>null</code> if the index is out of bounds */
public REXP at(int i) {
return (i>=0 && i<size())?(REXP)elementAt(i):null;
}
origin: org.rosuda.REngine/REngine

/** get element at the specified position
@param i index
@return value at the index or <code>null</code> if the index is out of bounds */
public REXP at(int i) {
return (i>=0 && i<size())?(REXP)elementAt(i):null;
}
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");
      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");
      sb.append(payload.at(i).toDebugString());
      i++;
    }
    if (i < payload.size()) sb.append(",..");
    return sb.toString()+"}";
  }
}
origin: org.rosuda.REngine/REngine

public boolean remove(Object elem) {
int i = indexOf(elem);
if (i<0) return false;
remove(i);
if (size()==0) names=null;
return true;
}
origin: net.rforge/REngine

public boolean remove(Object elem) {
int i = indexOf(elem);
if (i<0) return false;
remove(i);
if (size()==0) names=null;
return true;
}
origin: org.rosuda.REngine/REngine

  public String toString() {
    return "RList"+super.toString()+"{"+(isNamed()?"named,":"")+size()+"}";
  }
}
origin: net.rforge/REngine

  public String toString() {
    return "RList"+super.toString()+"{"+(isNamed()?"named,":"")+size()+"}";
  }
}
org.rosuda.REngineRListsize

Popular methods of RList

    Popular in Java

    • Creating JSON documents from java classes using gson
    • getSupportFragmentManager (FragmentActivity)
    • getSystemService (Context)
    • startActivity (Activity)
    • Window (java.awt)
      A Window object is a top-level window with no borders and no menubar. The default layout for a windo
    • String (java.lang)
    • Cipher (javax.crypto)
      This class provides access to implementations of cryptographic ciphers for encryption and decryption
    • Notification (javax.management)
    • Logger (org.slf4j)
      The main user interface to logging. It is expected that logging takes place through concrete impleme
    • Option (scala)
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now