本文整理了Java中edu.emory.mathcs.backport.java.util.Arrays
类的一些代码示例,展示了Arrays
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Arrays
类的具体详情如下:
包路径:edu.emory.mathcs.backport.java.util.Arrays
类名称:Arrays
暂无
代码示例来源:origin: jooby-project/jooby
@Override
public String debug() {
return mId + "; deps = " + Arrays.toString(cp);
}
代码示例来源:origin: org.nuxeo.ecm.platform/acaren-nuxeo-dafpic
@SuppressWarnings("rawtypes")
@Override
public List getTableNames(Connection connection) throws SQLException {
return Arrays.asList(TABLES_NAMES);
}
代码示例来源:origin: backport-util-concurrent/backport-util-concurrent
/**
* Returns an array containing all of the elements in this queue.
* The returned array elements are in no particular order.
*
* <p>The returned array will be "safe" in that no references to it are
* maintained by this queue. (In other words, this method must allocate
* a new array). The caller is thus free to modify the returned array.
*
* <p>This method acts as bridge between array-based and collection-based
* APIs.
*
* @return an array containing all of the elements in this queue
*/
public Object[] toArray() {
return Arrays.copyOf(buffer, size, Object[].class);
}
代码示例来源:origin: backport-util-concurrent/backport-util-concurrent
else deepToString((Object[])e, buf, seen);
(e instanceof byte[]) ? toString( (byte[]) e) :
(e instanceof short[]) ? toString( (short[]) e) :
(e instanceof int[]) ? toString( (int[]) e) :
(e instanceof long[]) ? toString( (long[]) e) :
(e instanceof char[]) ? toString( (char[]) e) :
(e instanceof boolean[]) ? toString( (boolean[]) e) :
(e instanceof float[]) ? toString( (float[]) e) :
(e instanceof double[]) ? toString( (double[]) e) : "");
代码示例来源:origin: backport-util-concurrent/backport-util-concurrent
e1.equals(e2) :
(e1 instanceof Object[] && e2 instanceof Object[]) ?
deepEquals((Object[])e1, (Object[])e2) :
(e1 instanceof byte[] && e2 instanceof byte[]) ?
equals((byte[])e1, (byte[])e2) :
(e1 instanceof short[] && e2 instanceof short[]) ?
equals((short[])e1, (short[])e2) :
(e1 instanceof int[] && e2 instanceof int[]) ?
equals((int[])e1, (int[])e2) :
代码示例来源:origin: DirectProject/nhin-d
@Test
public void testGetAllKeys() throws Exception
{
BootstrappedKeyStoreProtectionManager mgr = new BootstrappedKeyStoreProtectionManager();
mgr.setKeyStoreProtectionKey("1234");
mgr.setPrivateKeyProtectionKey("5678");
final Map<String, Key> keys = mgr.getAllKeys();
assertEquals(2, keys.size());
Iterator<Entry<String, Key>> entryIter = keys.entrySet().iterator();
Key key = entryIter.next().getValue();
assertTrue(Arrays.equals("5678".getBytes(), key.getEncoded()));
key = entryIter.next().getValue();
assertTrue(Arrays.equals("1234".getBytes(), key.getEncoded()));
}
}
代码示例来源:origin: backport-util-concurrent/backport-util-concurrent
/**
* @since 1.6
*/
public static Object[] copyOfRange(Object[] original, int from, int to) {
return copyOfRange(original, from, to, original.getClass());
}
代码示例来源:origin: co.cask.wrangler/wrangler-core
public MigrateToV2(String[] recipe) {
this(Arrays.asList(recipe));
}
代码示例来源:origin: edu.emory.mathcs.backport/com.springsource.edu.emory.mathcs.backport
/**
* Returns an array containing all of the elements in this queue.
* The returned array elements are in no particular order.
*
* <p>The returned array will be "safe" in that no references to it are
* maintained by this queue. (In other words, this method must allocate
* a new array). The caller is thus free to modify the returned array.
*
* <p>This method acts as bridge between array-based and collection-based
* APIs.
*
* @return an array containing all of the elements in this queue
*/
public Object[] toArray() {
return Arrays.copyOf(buffer, size, Object[].class);
}
代码示例来源:origin: edu.emory.mathcs.backport/com.springsource.edu.emory.mathcs.backport
else deepToString((Object[])e, buf, seen);
(e instanceof byte[]) ? toString( (byte[]) e) :
(e instanceof short[]) ? toString( (short[]) e) :
(e instanceof int[]) ? toString( (int[]) e) :
(e instanceof long[]) ? toString( (long[]) e) :
(e instanceof char[]) ? toString( (char[]) e) :
(e instanceof boolean[]) ? toString( (boolean[]) e) :
(e instanceof float[]) ? toString( (float[]) e) :
(e instanceof double[]) ? toString( (double[]) e) : "");
代码示例来源:origin: backport-util-concurrent/backport-util-concurrent-java12
e1.equals(e2) :
(e1 instanceof Object[] && e2 instanceof Object[]) ?
deepEquals((Object[])e1, (Object[])e2) :
(e1 instanceof byte[] && e2 instanceof byte[]) ?
equals((byte[])e1, (byte[])e2) :
(e1 instanceof short[] && e2 instanceof short[]) ?
equals((short[])e1, (short[])e2) :
(e1 instanceof int[] && e2 instanceof int[]) ?
equals((int[])e1, (int[])e2) :
代码示例来源:origin: DirectProject/nhin-d
@Test
public void testGetSetKeysFromByteArray() throws Exception
{
BootstrappedKeyStoreProtectionManager mgr = new BootstrappedKeyStoreProtectionManager();
mgr.setKeyStoreProtectionKey("1234".getBytes());
mgr.setPrivateKeyProtectionKey("5678".getBytes());
assertTrue(Arrays.equals("1234".getBytes(), mgr.getKeyStoreProtectionKey().getEncoded()));
assertTrue(Arrays.equals("5678".getBytes(), mgr.getPrivateKeyProtectionKey().getEncoded()));
}
代码示例来源:origin: edu.emory.mathcs.backport/com.springsource.edu.emory.mathcs.backport
/**
* @since 1.6
*/
public static Object[] copyOfRange(Object[] original, int from, int to) {
return copyOfRange(original, from, to, original.getClass());
}
代码示例来源:origin: io.teecube.tic/tic-bw6
/**
* @return a list of all files with ".substvar" extension in "META-INF" folder of the project.
*/
protected List<File> getAllSubstVarFiles() {
FileFilter substVarFilter = new FileFilter() {
@Override
public boolean accept(File file) {
return file.getName().toLowerCase().endsWith(".substvar");
}
};
File[] substVarFiles = metaInfSource.listFiles(substVarFilter);
List<File> result = new ArrayList<File>();
List<?> substVarFilesList = Arrays.asList(substVarFiles);
for (Object substVarFileObject : substVarFilesList) {
File substVarFile = (File) substVarFileObject;
result.add(substVarFile);
}
return result;
}
代码示例来源:origin: backport-util-concurrent/backport-util-concurrent-java12
/**
* Returns an array containing all of the elements in this queue.
* The returned array elements are in no particular order.
*
* <p>The returned array will be "safe" in that no references to it are
* maintained by this queue. (In other words, this method must allocate
* a new array). The caller is thus free to modify the returned array.
*
* <p>This method acts as bridge between array-based and collection-based
* APIs.
*
* @return an array containing all of the elements in this queue
*/
public Object[] toArray() {
return Arrays.copyOf(buffer, size, Object[].class);
}
代码示例来源:origin: backport-util-concurrent/backport-util-concurrent-java12
else deepToString((Object[])e, buf, seen);
(e instanceof byte[]) ? toString( (byte[]) e) :
(e instanceof short[]) ? toString( (short[]) e) :
(e instanceof int[]) ? toString( (int[]) e) :
(e instanceof long[]) ? toString( (long[]) e) :
(e instanceof char[]) ? toString( (char[]) e) :
(e instanceof boolean[]) ? toString( (boolean[]) e) :
(e instanceof float[]) ? toString( (float[]) e) :
(e instanceof double[]) ? toString( (double[]) e) : "");
代码示例来源:origin: edu.emory.mathcs.backport/com.springsource.edu.emory.mathcs.backport
e1.equals(e2) :
(e1 instanceof Object[] && e2 instanceof Object[]) ?
deepEquals((Object[])e1, (Object[])e2) :
(e1 instanceof byte[] && e2 instanceof byte[]) ?
equals((byte[])e1, (byte[])e2) :
(e1 instanceof short[] && e2 instanceof short[]) ?
equals((short[])e1, (short[])e2) :
(e1 instanceof int[] && e2 instanceof int[]) ?
equals((int[])e1, (int[])e2) :
代码示例来源:origin: minnal/minnal
jc.parse(args);
} catch (ParameterException e) {
logger.debug("Failed while parsing the args " + Arrays.toString(args), e);
showHelp(jc.getParsedCommand());
return;
代码示例来源:origin: DirectProject/nhin-d
@Test
public void testGetSetKeysFromString() throws Exception
{
BootstrappedKeyStoreProtectionManager mgr = new BootstrappedKeyStoreProtectionManager();
mgr.setKeyStoreProtectionKey("1234");
mgr.setPrivateKeyProtectionKey("5678");
assertTrue(Arrays.equals("1234".getBytes(), mgr.getKeyStoreProtectionKey().getEncoded()));
assertTrue(Arrays.equals("5678".getBytes(), mgr.getPrivateKeyProtectionKey().getEncoded()));
}
代码示例来源:origin: backport-util-concurrent/backport-util-concurrent-java12
/**
* @since 1.6
*/
public static Object[] copyOfRange(Object[] original, int from, int to) {
return copyOfRange(original, from, to, original.getClass());
}
内容来源于网络,如有侵权,请联系作者删除!