List of usage examples for org.apache.commons.lang3 StringUtils EMPTY
String EMPTY
To view the source code for org.apache.commons.lang3 StringUtils EMPTY.
Click Source Link
From source file:me.j360.dubbo.modules.util.concurrent.ThreadUtil.java
/** * StackTrace"??.??()"/*w ww .j a va 2 s .c o m*/ */ public static String getCallerMethod() { StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace(); if (stacktrace.length >= 4) { StackTraceElement element = stacktrace[3]; return element.getClassName() + '.' + element.getMethodName() + "()"; } else { return StringUtils.EMPTY; } }
From source file:com.aqnote.app.wifianalyzer.wifi.graph.time.TimeAxisLabelTest.java
@Test public void testYAxis() throws Exception { assertEquals(StringUtils.EMPTY, fixture.formatLabel(GraphViewBuilder.MIN_Y, false)); assertEquals("-99", fixture.formatLabel(GraphViewBuilder.MIN_Y + 1, false)); assertEquals("-10", fixture.formatLabel(GraphViewBuilder.MAX_Y, false)); assertEquals(StringUtils.EMPTY, fixture.formatLabel(GraphViewBuilder.MAX_Y + 1, false)); }
From source file:ch.cyberduck.core.DefaultPathPredicate.java
public String attributes() { String qualifier = StringUtils.EMPTY; if (StringUtils.isNotBlank(file.attributes().getRegion())) { if (containerService.isContainer(file)) { qualifier += file.attributes().getRegion(); }//from w ww. j a v a 2 s . c om } if (file.isFile()) { if (StringUtils.isNotBlank(file.attributes().getVersionId())) { qualifier += file.attributes().getVersionId(); } } return qualifier; }
From source file:com.inkubator.hrm.web.converter.ApprovalDefinitionConverter.java
@Override public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value) { ResourceBundle resourceBundle = ResourceBundle.getBundle("Messages", new Locale(FacesUtil.getSessionAttribute(HRMConstant.BAHASA_ACTIVE).toString())); String messages = StringUtils.EMPTY; String data = (String) value; switch (data) { case HRMConstant.REIMBURSEMENT: messages = resourceBundle.getString("reimbursment.reimbursment"); break;// w w w. ja v a2 s .c o m case HRMConstant.RECRUIT_MPP_APPLY: messages = resourceBundle.getString("approvaldefinition.recruit_mpp_apply"); break; case HRMConstant.LEAVE: messages = resourceBundle.getString("global.leave"); break; case HRMConstant.OVERTIME: messages = resourceBundle.getString("global.overtime"); break; case HRMConstant.RECRUITMENT_REQUEST: messages = resourceBundle.getString("recruitment.recruitment_request"); break; case HRMConstant.EMP_CORRECTION_ATTENDANCE: messages = resourceBundle.getString("emp_correction_attendance.correction_attendance"); break; case HRMConstant.LOAN: messages = resourceBundle.getString("loan.loan"); break; case HRMConstant.SHIFT_SCHEDULE: messages = resourceBundle.getString("global.schedule_shift"); break; case HRMConstant.BUSINESS_TRAVEL: messages = resourceBundle.getString("businesstravel.business_travel"); break; case HRMConstant.PERMIT: messages = resourceBundle.getString("global.permit"); break; case HRMConstant.EMPLOYEE_CAREER_TRANSITION: messages = resourceBundle.getString("emp_career_transition.career_transition"); break; case HRMConstant.EMPLOYEE_ELIMINATION: messages = resourceBundle.getString("approvaldefinition.process_request_career_elimination"); break; case HRMConstant.APPROVAL_PROCESS: messages = resourceBundle.getString("approvaldefinition.approval_process"); break; case HRMConstant.APPROVAL_TYPE_POSITION: messages = resourceBundle.getString("position.position"); break; case HRMConstant.APPROVAL_TYPE_DEPARTMENT: messages = resourceBundle.getString("department.department"); break; case HRMConstant.APPROVAL_TYPE_INDIVIDUAL: messages = resourceBundle.getString("global.individual"); break; default: messages = data; break; } return messages; }
From source file:com.baifendian.swordfish.common.utils.DateUtils.java
/** * ??//from w w w.j a v a2 s . c o m * * @param date * @param formatString * @return */ public static String format(Date date, String formatString) { if (date == null) { return StringUtils.EMPTY; } FastDateFormat format = FastDateFormat.getInstance(formatString); return format.format(date); }
From source file:com.inkubator.hrm.web.converter.PaySalaryJurnalTypeJurnalConverter.java
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { ResourceBundle resourceBundle = ResourceBundle.getBundle("Messages", new Locale(FacesUtil.getSessionAttribute(HRMConstant.BAHASA_ACTIVE).toString())); String messages = StringUtils.EMPTY; Integer data = (Integer) value; if (data == HRMConstant.PAY_SALARY_JURNAL_TYPE_DEBET) { messages = resourceBundle.getString("paySalaryJurnal.debet"); } else if (data == HRMConstant.PAY_SALARY_JURNAL_TYPE_KREDIT) { messages = resourceBundle.getString("paySalaryJurnal.kredit"); }/*w w w .j a va 2s. co m*/ return messages; }
From source file:com.inkubator.hrm.web.converter.PaySalaryJurnalModelJurnalConverter.java
@Override public String getAsString(FacesContext context, UIComponent component, Object value) { ResourceBundle resourceBundle = ResourceBundle.getBundle("Messages", new Locale(FacesUtil.getSessionAttribute(HRMConstant.BAHASA_ACTIVE).toString())); String messages = StringUtils.EMPTY; Integer data = (Integer) value; if (data == HRMConstant.PAY_SALARY_JURNAL_MODEL_CASH) { messages = resourceBundle.getString("paySalaryJurnal.cash"); } else if (data == HRMConstant.PAY_SALARY_JURNAL_MODEL_TRANSFER) { messages = resourceBundle.getString("paySalaryJurnal.transfer"); }/* w ww .jav a 2 s . c o m*/ return messages; }
From source file:io.github.swagger2markup.internal.utils.MarkupDocBuilderUtils.java
public static String markupDescription(MarkupLanguage swaggerMarkupLanguage, MarkupDocBuilder markupDocBuilder, String markupText) {// www . ja va2 s . c o m if (StringUtils.isBlank(markupText)) { return StringUtils.EMPTY; } return copyMarkupDocBuilder(markupDocBuilder) .importMarkup(new StringReader(markupText), swaggerMarkupLanguage).toString().trim(); }
From source file:ch.cyberduck.core.logging.LoggingConfiguration.java
public LoggingConfiguration() { this.enabled = false; this.loggingTarget = StringUtils.EMPTY; }
From source file:me.ineson.demo.app.rest.RestConfigTest.java
@Test public void testsupportedMediaTypeEmpty() { Assert.assertFalse(RestConfig.supportedMediaType(StringUtils.EMPTY)); }