public OperationRequest(ConnectorKey key, String connectorFacadeKey, Class<? extends APIOperation> operation, String operationMethodName, List<Object> arguments) { connectorKey = key; configuration = connectorFacadeKey; this.operation = operation; this.operationMethodName = operationMethodName; this.arguments = CollectionUtil.newReadOnlyList(arguments); }
public OperationRequest(ConnectorKey key, String connectorFacadeKey, Class<? extends APIOperation> operation, String operationMethodName, List<Object> arguments) { connectorKey = key; configuration = connectorFacadeKey; this.operation = operation; this.operationMethodName = operationMethodName; this.arguments = CollectionUtil.newReadOnlyList(arguments); }
public HelloResponse(Throwable exception, List<RemoteConnectorInfoImpl> connectorInfos) { _exception = exception; _connectorInfos = CollectionUtil.newReadOnlyList(connectorInfos); }
/** * @return the param values */ public List<SQLParam> getParams() { return CollectionUtil.newReadOnlyList(params); } }
public LocalManagerKey(List<URL> urls, ClassLoader bundleParentClassLoader) { this.urls = CollectionUtil.newReadOnlyList(urls); this.bundleParentClassLoader = bundleParentClassLoader; }
/** * {@inheritDoc} */ @Override public List<String> getPropertyNames() { List<String> names = new ArrayList<String>(properties.keySet()); return CollectionUtil.newReadOnlyList(names); }
/** * {@inheritDoc} */ public List<String> getPropertyNames() { List<String> names = new ArrayList<String>(_properties.keySet()); return CollectionUtil.newReadOnlyList(names); }
public HelloResponse(Throwable exception, Map<String, Object> serverInfo, List<ConnectorKey> connectorKeys, List<RemoteConnectorInfoImpl> connectorInfos) { this.exception = exception; this.serverInfo = CollectionUtil.asReadOnlyMap(serverInfo); this.connectorKeys = CollectionUtil.newReadOnlyList(connectorKeys); this.connectorInfos = CollectionUtil.newReadOnlyList(connectorInfos); }
public HelloResponse(Throwable exception, Map<String, Object> serverInfo, List<ConnectorKey> connectorKeys, List<RemoteConnectorInfoImpl> connectorInfos) { this.exception = exception; this.serverInfo = CollectionUtil.asReadOnlyMap(serverInfo); this.connectorKeys = CollectionUtil.newReadOnlyList(connectorKeys); this.connectorInfos = CollectionUtil.newReadOnlyList(connectorInfos); }
@Override public List<ConnectorInfo> getConnectorInfos() { List<ConnectorInfo> result = new ArrayList<>(); connectorInfoCache.values().forEach((info) -> { result.addAll(info.second); }); return CollectionUtil.newReadOnlyList(result); }
/** * Sets the key managers to use for the SSL connection. * * @param keyManagers * the key managers to use for the SSL connection. If null or * empty, uses the JVM default. */ public void setKeyManagers(final List<KeyManager> keyManagers) { assertNotStarted(); this.keyManagers = CollectionUtil.newReadOnlyList(keyManagers); }
public Uid(String value, Name nameHint) { super(NAME, CollectionUtil.<Object>newReadOnlyList(check(value))); this.revision = null; this.nameHint = nameHint; }
/** * Sets the key managers to use for the SSL connection. * * @param keyManagers the key managers to use for the SSL connection. * If null or empty, uses the JVM default. */ public void setKeyManagers(final List<KeyManager> keyManagers) { assertNotStarted(); _keyManagers = CollectionUtil.newReadOnlyList(keyManagers); }
/** * Sets the bundle URLs for connectors to expose by this server. * * @param urls The bundle URLs for connectors to expose by this server. */ public void setBundleURLs(final List<URL> urls) { assertNotStarted(); _bundleURLs = CollectionUtil.newReadOnlyList(urls); }
/** * Sets the bundle URLs for connectors to expose by this server. * * @param urls * The bundle URLs for connectors to expose by this server. */ public void setBundleURLs(final List<URL> urls) { assertNotStarted(); bundleURLs = CollectionUtil.newReadOnlyList(urls); }
public Uid(String value, Name nameHint) { super(NAME, CollectionUtil.<Object>newReadOnlyList(check(value))); this.revision = null; this.nameHint = nameHint; }
public Uid(String value, String revision) { super(NAME, CollectionUtil.<Object>newReadOnlyList(check(value))); if (StringUtil.isBlank(revision)) { throw new IllegalArgumentException("Revision value must not be blank!"); } this.revision = revision; this.nameHint = null; }
public Uid(String value, String revision, Name nameHint) { super(NAME, CollectionUtil.<Object>newReadOnlyList(check(value))); if (StringUtil.isBlank(revision)) { throw new IllegalArgumentException("Revision value must not be blank!"); } this.revision = revision; this.nameHint = nameHint; }
@Test public void testReadonlyList() { String[] data = { "a", "b", "c" }; List<String> expected = CollectionUtil.newReadOnlyList("a", "b", "c"); List<String> actual = CollectionUtil.newReadOnlyList(data); assertEquals(actual, expected); }
/** * Tests the {@link StringUtil#parseLine(String, char, char)} method. */ @Test public void testParseLine() { List<Object> values; values = CollectionUtil.<Object>newReadOnlyList("bob", "george", 4, 23, 230948); parseLineTest(TEXTQ, FEILDD, values); }