Package railo.commons.lang.SizeAndCount

Examples of railo.commons.lang.SizeAndCount.Size


public final class SizeOf implements Function {
  public static Object call(PageContext pc , Object object) throws PageException {
    return call(pc, object,false);
  }
  public static Object call(PageContext pc , Object object, boolean complex) throws PageException {
    Size size = SizeAndCount.sizeOf(object);
    if(!complex)
      return Caster.toDouble(size.size);
   
    Struct sct=new StructImpl();
    sct.set(KeyConstants._size, Caster.toDouble(size.size));
View Full Code Here


  private static void getAllApplicationScopes(ConfigWebImpl web, ScopeContext sc, Query app) throws PageException {
    Struct all = sc.getAllApplicationScopes();
    Iterator<Entry<Key, Object>> it = all.entryIterator();
    Entry<Key, Object> e;
    int row;
    Size sac;
    while(it.hasNext()){
      e = it.next();
      row=app.addRow();
      sac = SizeAndCount.sizeOf(e.getValue());
      app.setAt(KeyConstants._web, row, web.getLabel());
View Full Code Here

  private static void getAllCFSessionScopes(ConfigWebImpl web, ScopeContext sc, Query sess) throws PageException {
    Struct all = sc.getAllCFSessionScopes();
    Iterator it = all.entryIterator(),itt;
    Entry e,ee;
    int row,size,count,users;
    Size sac;
    // applications
    while(it.hasNext()){
      e = (Entry) it.next();
      itt = ((Map)e.getValue()).entrySet().iterator();
      size=0;count=0;users=0;
View Full Code Here

TOP

Related Classes of railo.commons.lang.SizeAndCount.Size

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.