public class CloseableArray<T extends AutoCloseable> extends Object implements AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
close(Exception pendingError) |
void |
closeAt(int i) |
T |
get(int i) |
T[] |
getArray() |
T[] |
release() |
T |
set(int i,
T obj) |
int |
size() |
static <T extends AutoCloseable> |
wrap(T[] array) |
public static <T extends AutoCloseable> CloseableArray<T> wrap(T[] array)
public int size()
public T get(int i)
public T[] getArray()
public T[] release()
public void closeAt(int i)
public void close()
close
in interface AutoCloseable
public void close(Exception pendingError)
Copyright © 2024. All rights reserved.