Example usage for java.lang Long toString

List of usage examples for java.lang Long toString

Introduction

In this page you can find the example usage for java.lang Long toString.

Prototype

public String toString() 

Source Link

Document

Returns a String object representing this Long 's value.

Usage

From source file:br.edu.unifesspa.lcc.indexer.GerarIndice.java

public GerarIndice(List<Integer> list, Long assunto, Long procId) {
    this.list = list;
    this.assunto = assunto;
    this.dbAssunto = mongo.getDB(assunto.toString());
    this.procId = procId;
    System.out.println("Assunto: " + assunto);
    System.out.println("Lista: " + this.list);
    System.out.println("ID do processamento: " + procId);

}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccMssCF.CFAccMssCFBindAccountConfigCustContactListTenantId.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFAccMssCFBindAccountConfigCustContactListTenantId.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//w  w w . java2 s.co m

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFAccAccountConfigObj) {
        Long custContactListTenantId = ((ICFAccAccountConfigObj) genDef).getOptionalCustContactListTenantId();
        if (custContactListTenantId == null) {
            ret = null;
        } else {
            ret = custContactListTenantId.toString();
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFAccAccountConfigObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfacc.v2_0.CFAccMssCF.CFAccMssCFBindAccountConfigVendContactListTenantId.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFAccMssCFBindAccountConfigVendContactListTenantId.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }//w w  w.j a v a 2 s  .  c om

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFAccAccountConfigObj) {
        Long vendContactListTenantId = ((ICFAccAccountConfigObj) genDef).getOptionalVendContactListTenantId();
        if (vendContactListTenantId == null) {
            ret = null;
        } else {
            ret = vendContactListTenantId.toString();
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFAccAccountConfigObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashMssCF.CFGCashMssCFBindAccountConfigCustContactListTenantId.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFGCashMssCFBindAccountConfigCustContactListTenantId.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*  www  .  j  a  v  a2  s .  c om*/

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFGCashAccountConfigObj) {
        Long custContactListTenantId = ((ICFGCashAccountConfigObj) genDef).getOptionalCustContactListTenantId();
        if (custContactListTenantId == null) {
            ret = null;
        } else {
            ret = custContactListTenantId.toString();
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFGCashAccountConfigObj");
    }

    return (ret);
}

From source file:net.sourceforge.msscodefactory.cfgcash.v2_0.CFGCashMssCF.CFGCashMssCFBindAccountConfigVendContactListTenantId.java

public String expandBody(MssCFGenContext genContext) {
    final String S_ProcName = "CFGCashMssCFBindAccountConfigVendContactListTenantId.expandBody() ";

    if (genContext == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext");
    }/*from  w w  w  . j ava2 s.  co m*/

    ICFLibAnyObj genDef = genContext.getGenDef();
    if (genDef == null) {
        throw CFLib.getDefaultExceptionFactory().newNullArgumentException(getClass(), "expandBody", 1,
                "genContext.getGenDef()");
    }

    String ret;

    if (genDef instanceof ICFGCashAccountConfigObj) {
        Long vendContactListTenantId = ((ICFGCashAccountConfigObj) genDef).getOptionalVendContactListTenantId();
        if (vendContactListTenantId == null) {
            ret = null;
        } else {
            ret = vendContactListTenantId.toString();
        }
    } else {
        throw CFLib.getDefaultExceptionFactory().newUnsupportedClassException(getClass(), "expandBody",
                "genContext.getGenDef()", genDef, "ICFGCashAccountConfigObj");
    }

    return (ret);
}

From source file:com.linkedin.databus.core.TestTrailFilePositionSetter.java

private static String toFixedLengthString(Long num, long numDigits) {
    String n = num.toString();
    long numDigitsToBeZeroed = numDigits - n.length();
    StringBuilder bld = new StringBuilder();
    for (int i = 0; i < numDigitsToBeZeroed; i++)
        bld.append('0');
    bld.append(n);/*ww w  .ja  v a 2 s  .  com*/
    return bld.toString();
}

From source file:org.seamless_ip.services.dao.IndicatorValueDaoImpl.java

@SuppressWarnings("unchecked")
public List<String> findCalculatedIndicatorIdsForExperiment(List<String> experimentIds) {
    List<String> result = new ArrayList<String>();

    for (String expId : experimentIds) {
        Query q = query("select v.Indicator.id from IIndicatorValue v where v.Experiment.id = :id")
                .setParameter("id", Long.valueOf(expId));
        List<Long> allIds = q.list();

        if (allIds != null) {
            for (Long id : allIds) {
                if (!result.contains(id.toString()))
                    result.add(id.toString());
            }//from  w w  w.ja v a  2s. c  o  m
        }
    }
    return result;
}

From source file:com.yoncabt.abys.core.util.EBRConf.java

public Long getValue(String key, Long defaultValue) {
    String ret = getValueFromAll(key, defaultValue == null ? null : defaultValue.toString());
    return ret == null ? null : Long.valueOf(ret);
}

From source file:io.apiman.cli.PluginTest.java

@Test
public void test2_fetch() throws Exception {
    final Plugin addedPlugin = getPlugin();

    // look up plugin by its generated ID
    final Long pluginId = addedPlugin.getId();

    Cli.main("plugin", "show", "--debug", "--server", getApimanUrl(), "--serverUsername",
            AuthUtil.DEFAULT_SERVER_USERNAME, "--serverPassword", AuthUtil.DEFAULT_SERVER_PASSWORD, "--id",
            pluginId.toString());
}

From source file:com.ignorelist.kassandra.steam.scraper.SharedConfig.java

public void setTags(Long gameId, Set<String> tags) {
    VdfNode gameNode;/* w  w  w.  j  a v  a  2s  . c o m*/
    try {
        gameNode = getGameNode(gameId);
    } catch (NoSuchElementException nsee) {
        gameNode = new VdfNode();
        gameNode.setName(gameId.toString());
        getAppsNode().addChild(gameNode);
    }
    setTags(gameNode, tags);
}