XpsArray
Inheritance: java.lang.Object, com.aspose.xps.XpsObject
public abstract class XpsArray<T> extends XpsObject
Classe che incapsula le funzionalità comuni degli oggetti array del modello XPS.
Metodi
| Metodo | Descrizione |
|---|---|
| add(T obj) | Aggiunge un nuovo oggetto all’array. |
| equals(Object arg0) | |
| get(int i) | Fornisce l’accesso all’elemento dell’array tramite l’indice i. |
| getClass() | |
| hashCode() | |
| insert(int index, T obj) | Inserisce un nuovo oggetto nell’array nella posizione specificata. |
| notify() | |
| notifyAll() | |
| remove(T obj) | Rimuove un oggetto dall’array. |
| removeAt(int index) | Rimuove un oggetto dall’array nella posizione specificata. |
| size() | Restituisce il numero di elementi. |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
add(T obj)
public T add(T obj)
Aggiunge un nuovo oggetto all’array.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| obj | T | L’oggetto da aggiungere. |
Returns: T - Oggetto aggiunto.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
get(int i)
public T get(int i)
Fornisce l’accesso all’elemento dell’array tramite l’indice i.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| i | int | Indice dell’elemento. |
Returns: T - L’elemento nella posizione i.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
insert(int index, T obj)
public T insert(int index, T obj)
Inserisce un nuovo oggetto nell’array nella posizione specificata.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| indice | int | La posizione in cui inserire un oggetto. |
| obj | T | L’oggetto da inserire. |
Returns: T - Oggetto inserito.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
remove(T obj)
public T remove(T obj)
Rimuove un oggetto dall’array.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| obj | T | L’oggetto da rimuovere. |
Returns: T - Oggetto rimosso.
removeAt(int index)
public T removeAt(int index)
Rimuove un oggetto dall’array nella posizione specificata.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| indice | int | La posizione in cui rimuovere un oggetto. |
Returns: T - Oggetto rimosso.
size()
public int size()
Restituisce il numero di elementi.
Returns: int - Il numero di elementi.
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | long | |
| arg1 | int |