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:ch.cyberduck.core.sds.SDSDeleteFeature.java
@Override public void delete(final List<Path> files, final PasswordCallback prompt, final Callback callback) throws BackgroundException { for (Path file : files) { try {/*from www. j a v a2 s . c om*/ new NodesApi(session.getClient()).deleteNode(StringUtils.EMPTY, Long.parseLong( new SDSNodeIdProvider(session).getFileid(file, new DisabledListProgressListener()))); } catch (ApiException e) { throw new SDSExceptionMappingService().map("Cannot delete {0}", e, file); } } }
From source file:ch.cyberduck.ui.cocoa.controller.DownloadController.java
public DownloadController() { this(StringUtils.EMPTY); }
From source file:monasca.api.infrastructure.persistence.influxdb.InfluxV9UtilsTest.java
@Test(groups = { "functional", "timeOffsetPart" }) public void testTimeOffsetPart_EmptyString() throws Exception { assertEquals(StringUtils.EMPTY, this.instance.timeOffsetPart(StringUtils.EMPTY)); }
From source file:com.github.haixing_hu.ilibrary.model.FieldTemplate.java
/** * Default Constructs a {@link FieldTemplate}. * <p> * This default constructor is presented for JAXB. */ FieldTemplate() { name = StringUtils.EMPTY; type = DataType.STRING; multiple = false; }
From source file:models.CodeCommentThread.java
public boolean isCommitComment() { return ObjectUtils.equals(prevCommitId, StringUtils.EMPTY); }
From source file:com.vrem.wifianalyzer.navigation.options.WiFiSwitchOffTest.java
@Test public void testApplySetEmptySubtitle() throws Exception { // setup// ww w .j ava 2 s . com when(mainActivity.getSupportActionBar()).thenReturn(actionBar); // execute fixture.apply(mainActivity); // validate verify(mainActivity).getSupportActionBar(); verify(actionBar).setSubtitle(StringUtils.EMPTY); }
From source file:ch.cyberduck.core.sds.SDSSearchFeature.java
@Override public AttributedList<Path> search(final Path workdir, final Filter<Path> regex, final ListProgressListener listener) throws BackgroundException { try {// ww w. j a va 2s . c om final AttributedList<Path> result = new AttributedList<>(); final NodeList list = new NodesApi(session.getClient()).searchFsNodes(StringUtils.EMPTY, String.format("*%s*", regex.toPattern().pattern()), null, -1, Long.valueOf(new SDSNodeIdProvider(session).getFileid(workdir, listener)), null, null, null, null); final SDSAttributesFinderFeature feature = new SDSAttributesFinderFeature(session); for (Node node : list.getItems()) { final PathAttributes attributes = feature.toAttributes(node); final EnumSet<AbstractPath.Type> type; switch (node.getType()) { case ROOM: type = EnumSet.of(Path.Type.directory, Path.Type.volume); break; case FOLDER: type = EnumSet.of(Path.Type.directory); break; default: type = EnumSet.of(Path.Type.file); break; } result.add(new Path(new Path(node.getParentPath(), EnumSet.of(Path.Type.directory)), node.getName(), type, attributes)); } return result; } catch (ApiException e) { throw new SDSExceptionMappingService().map("Failure to read attributes of {0}", e, workdir); } }
From source file:com.aqnote.app.wifianalyzer.wifi.model.WiFiAdditionalTest.java
@Test public void testWiFiAdditionalWithConfiguredNetwork() throws Exception { WiFiAdditional fixture = new WiFiAdditional(VENDOR_NAME, true); assertEquals(VENDOR_NAME, fixture.getVendorName()); assertEquals(StringUtils.EMPTY, fixture.getIPAddress()); assertEquals(WiFiConnection.LINK_SPEED_INVALID, fixture.getLinkSpeed()); assertFalse(fixture.isConnected());/*from ww w . j av a 2s . co m*/ assertTrue(fixture.isConfiguredNetwork()); }
From source file:com.moha.demo.utils.Hashsalt.java
public String encrypt(String password) { String algorithm = EnvUtils.getProperty("algorithm"); String keyString = EnvUtils.getProperty("keyString"); SecretKey key = new SecretKeySpec(keyString.getBytes(), algorithm); try {// w w w. ja va 2 s .com Mac m = Mac.getInstance(algorithm); m.init(key); m.update(password.getBytes()); byte[] mac = m.doFinal(); return toHexString(mac); } catch (Exception e) { System.out.println(e.toString()); } return StringUtils.EMPTY; }
From source file:com.github.haixing_hu.csl.Author.java
/** * Default constructs an {@link Author}. */ public Author() { name = StringUtils.EMPTY; email = null; uri = null; }