本文整理了Java中java.util.AbstractSet.toArray()
方法的一些代码示例,展示了AbstractSet.toArray()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractSet.toArray()
方法的具体详情如下:
包路径:java.util.AbstractSet
类名称:AbstractSet
方法名:toArray
暂无
代码示例来源:origin: robovm/robovm
public Object[] toArray() {
return adapter.toArray();
}
public <U> U[] toArray(U[] a) {
代码示例来源:origin: robovm/robovm
public Object[] toArray() {
return adapter.toArray();
}
public <U> U[] toArray(U[] a) {
代码示例来源:origin: robovm/robovm
public <U> U[] toArray(U[] a) {
return adapter.toArray(a);
}
代码示例来源:origin: robovm/robovm
public <U> U[] toArray(U[] a) {
return adapter.toArray(a);
}
代码示例来源:origin: geotools/geotools
/**
* Returns an array containing all of the elements in this collection.
*
* @return an array containing all of the elements in this set.
*/
@Override
public Object[] toArray() {
synchronized (map) {
return super.toArray();
}
}
代码示例来源:origin: geotools/geotools
/**
* Returns an array containing all of the elements in this collection.
*
* @param <T> The type of elements in the array.
* @param a The array into which the elements of the set are to be stored, if it is big enough;
* otherwise, a new array of the same runtime type is allocated for this purpose.
* @return an array containing the elements of the set.
*/
@Override
public <T> T[] toArray(final T[] a) {
synchronized (map) {
return super.toArray(a);
}
}
代码示例来源:origin: org.geotools/gt-metadata
/**
* Returns an array containing all of the elements in this collection.
*
* @return an array containing all of the elements in this set.
*/
@Override
public Object[] toArray() {
synchronized (map) {
return super.toArray();
}
}
代码示例来源:origin: org.geotools/gt2-metadata
/**
* Returns an array containing all of the elements in this collection.
*/
public /*<T> T[]*/ Object[] toArray(final /*T[]*/ Object[] array) {
synchronized (hash) {
return super.toArray(array);
}
}
代码示例来源:origin: org.geotools/gt2-metadata
/**
* Returns an array containing all of the elements in this collection.
*/
public Object[] toArray() {
synchronized (hash) {
return super.toArray();
}
}
代码示例来源:origin: ibinti/bugvm
public Object[] toArray() {
return adapter.toArray();
}
public <U> U[] toArray(U[] a) {
代码示例来源:origin: org.geotools/gt2-metadata
/**
* Returns an array containing all of the elements in this collection.
*
* @return an array containing all of the elements in this set.
*/
public Object[] toArray() {
synchronized (map) {
return super.toArray();
}
}
代码示例来源:origin: ibinti/bugvm
public Object[] toArray() {
return adapter.toArray();
}
public <U> U[] toArray(U[] a) {
代码示例来源:origin: Geomatys/geotoolkit
/**
* Returns an array containing all of the elements in this collection.
*
* @return an array containing all of the elements in this set.
*/
@Override
public Object[] toArray() {
synchronized (map) {
return super.toArray();
}
}
代码示例来源:origin: org.geotools/gt2-metadata
/**
* Returns an array containing all of the elements in this collection.
*
* @param a The array into which the elements of the set are to be
* stored, if it is big enough; otherwise, a new array of
* the same runtime type is allocated for this purpose.
* @return an array containing the elements of the set.
*/
public Object[] toArray(final Object[] a) {
synchronized (map) {
return super.toArray(a);
}
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-cocoatouch
public Object[] toArray() {
return adapter.toArray();
}
public <U> U[] toArray(U[] a) {
代码示例来源:origin: com.mobidevelop.robovm/robovm-cocoatouch
public Object[] toArray() {
return adapter.toArray();
}
public <U> U[] toArray(U[] a) {
代码示例来源:origin: com.bugvm/bugvm-apple
public Object[] toArray() {
return adapter.toArray();
}
public <U> U[] toArray(U[] a) {
代码示例来源:origin: org.apache.sis.core/sis-utility
/**
* Returns the elements in an array.
*
* @return an array containing all set elements.
*/
@Override
public Object[] toArray() {
return isSizeKnown() ? super.toArray() : toArray(new Object[32], true);
}
代码示例来源:origin: org.apache.sis.core/sis-utility
/**
* Returns the elements in the given array, or in a new array of the same type
* if it was necessary to allocate more space.
*
* @param <T> the type array elements.
* @param array where to store the elements.
* @return an array containing all set elements.
*/
@Override
@SuppressWarnings("SuspiciousToArrayCall")
public <T> T[] toArray(final T[] array) {
return isSizeKnown() ? super.toArray(array) : toArray(array, false);
}
代码示例来源:origin: apache/sis
/**
* Returns the elements in an array.
*
* @return an array containing all set elements.
*/
@Override
public Object[] toArray() {
return isSizeKnown() ? super.toArray() : toArray(iterator(), new Object[32], true);
}
内容来源于网络,如有侵权,请联系作者删除!