Example usage for org.apache.commons.lang3 ArrayUtils EMPTY_OBJECT_ARRAY

List of usage examples for org.apache.commons.lang3 ArrayUtils EMPTY_OBJECT_ARRAY

Introduction

In this page you can find the example usage for org.apache.commons.lang3 ArrayUtils EMPTY_OBJECT_ARRAY.

Prototype

Object[] EMPTY_OBJECT_ARRAY

To view the source code for org.apache.commons.lang3 ArrayUtils EMPTY_OBJECT_ARRAY.

Click Source Link

Document

An empty immutable Object array.

Usage

From source file:de.renew.workflow.internal.i18n.Messages.java

/**
 * java reflections needs this method-signatur
 *//* ww  w .j a va2s  . c o  m*/
public static String getString(final String key) {
    return getString(key, ArrayUtils.EMPTY_OBJECT_ARRAY);
}

From source file:com.google.dart.tools.ui.internal.refactoring.WorkbenchSourceAdapter_NEW.java

@Override
public Object[] getChildren(Object o) {
    return ArrayUtils.EMPTY_OBJECT_ARRAY;
}

From source file:com.link_intersystems.lang.PrimitiveArrayCallbackTest.java

@Test(expected = IllegalArgumentException.class)
public void notAnPrimitiveArrayConstructorArg() {
    new PrimitiveArrayCallback(ArrayUtils.EMPTY_OBJECT_ARRAY);
}

From source file:com.github.xbn.array.helper.ObjectArrayHelper.java

public Object[] getEmpty() {
    return ArrayUtils.EMPTY_OBJECT_ARRAY;
}

From source file:net.community.chest.gitcloud.facade.backend.git.BackendRepositoryResolverTest.java

public BackendRepositoryResolverTest() {
    baseDir = ensureFolderExists(new File(Validate.notNull(detectTargetFolder(), "Cannot detect target folder",
            ArrayUtils.EMPTY_OBJECT_ARRAY), getClass().getSimpleName()));
    reposDir = ensureFolderExists(new File(baseDir, "repos"));
    resolver = new BackendRepositoryResolver<Void>(reposDir);
}

From source file:com.feilong.core.util.SortUtilTest.java

@Test
public final void testSortTArray() {
    assertEquals(ArrayUtils.EMPTY_OBJECT_ARRAY, sort((Object[]) null));
}

From source file:it.f2informatica.pagination.response.DatatablePaginationResponse.java

private <T> Object[] convertResultAsArray(Page<T> paginatedQueryResult, QueryParameters parameters) {
    return paginatedQueryResult.hasContent()
            ? Iterables.toArray(transformDataRowOneByOne(parameters, paginatedQueryResult), Object.class)
            : ArrayUtils.EMPTY_OBJECT_ARRAY;
}

From source file:com.github.xbn.lang.reflect.InvokeMethodWithRtx.java

public InvokeMethodWithRtx noParams() {
    parameters(ArrayUtils.EMPTY_OBJECT_ARRAY);
    return this;
}

From source file:net.community.chest.gitcloud.facade.backend.git.BackendRepositoryResolver.java

@Inject
public BackendRepositoryResolver(@Value(REPOS_BASE_INJECTION_VALUE) String baseDir) {
    this(new File(Validate.notEmpty(baseDir, "No base folder", ArrayUtils.EMPTY_OBJECT_ARRAY)));
}

From source file:io.wcm.testing.mock.sling.MockSlingScriptHelper.java

@Override
@SuppressWarnings("unchecked")
public <ServiceType> ServiceType[] getServices(final Class<ServiceType> serviceType, final String filter) {
    try {//www . j av a 2  s.  c  o  m
        ServiceReference[] serviceReferences = this.bundleContext.getServiceReferences(serviceType.getName(),
                filter);
        if (serviceReferences != null) {
            Object[] services = new Object[serviceReferences.length];
            for (int i = 0; i < serviceReferences.length; i++) {
                services[i] = this.bundleContext.getService(serviceReferences[i]);
            }
            return (ServiceType[]) services;
        } else {
            return (ServiceType[]) ArrayUtils.EMPTY_OBJECT_ARRAY;
        }
    } catch (InvalidSyntaxException ex) {
        throw new InvalidServiceFilterSyntaxException(filter, ex.getMessage(), ex);
    }
}