Class Size
- java.lang.Object
-
- de.uplanet.lucy.server.scripting.groovy.Size
-
-
Constructor Summary
Constructors Constructor Description Size(int p_iWidth, int p_iHeight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int p_index, Integer p_element)
boolean
add(Integer p_e)
boolean
addAll(int p_index, Collection<? extends Integer> p_c)
boolean
addAll(Collection<? extends Integer> p_c)
void
clear()
boolean
contains(Object p_o)
boolean
containsAll(Collection<?> p_c)
Integer
get(int p_iIndex)
Integer
getHeight()
Get the height.Integer
getWidth()
Get the width.Integer
getX()
Get the width.Integer
getY()
Get the height.int
indexOf(Object p_o)
boolean
isEmpty()
Iterator<Integer>
iterator()
int
lastIndexOf(Object p_o)
ListIterator<Integer>
listIterator()
ListIterator<Integer>
listIterator(int p_iIndex)
Integer
remove(int p_iIndex)
boolean
remove(Object p_o)
boolean
removeAll(Collection<?> p_c)
boolean
retainAll(Collection<?> p_c)
Integer
set(int p_index, Integer p_element)
int
size()
List<Integer>
subList(int p_fromIndex, int p_toIndex)
Object[]
toArray()
An array that contains the width and height, in that order.<T> T[]
toArray(T[] p_array)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
getWidth
public Integer getWidth()
Get the width.- Returns:
- The width.
-
getX
public Integer getX()
Get the width.- Returns:
- The width.
-
getHeight
public Integer getHeight()
Get the height.- Returns:
- The height.
-
getY
public Integer getY()
Get the height.- Returns:
- The height.
-
add
public void add(int p_index, Integer p_element)
- Specified by:
add
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
add
public boolean add(Integer p_e)
- Specified by:
add
in interfaceCollection<Integer>
- Specified by:
add
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
addAll
public boolean addAll(Collection<? extends Integer> p_c)
- Specified by:
addAll
in interfaceCollection<Integer>
- Specified by:
addAll
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
addAll
public boolean addAll(int p_index, Collection<? extends Integer> p_c)
- Specified by:
addAll
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<Integer>
- Specified by:
clear
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
contains
public boolean contains(Object p_o)
- Specified by:
contains
in interfaceCollection<Integer>
- Specified by:
contains
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
containsAll
public boolean containsAll(Collection<?> p_c)
- Specified by:
containsAll
in interfaceCollection<Integer>
- Specified by:
containsAll
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
indexOf
public int indexOf(Object p_o)
- Specified by:
indexOf
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
isEmpty
public boolean isEmpty()
-
iterator
public Iterator<Integer> iterator()
- Specified by:
iterator
in interfaceCollection<Integer>
- Specified by:
iterator
in interfaceIterable<Integer>
- Specified by:
iterator
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
lastIndexOf
public int lastIndexOf(Object p_o)
- Specified by:
lastIndexOf
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
listIterator
public ListIterator<Integer> listIterator()
- Specified by:
listIterator
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
listIterator
public ListIterator<Integer> listIterator(int p_iIndex)
- Specified by:
listIterator
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
remove
public Integer remove(int p_iIndex)
- Specified by:
remove
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
remove
public boolean remove(Object p_o)
- Specified by:
remove
in interfaceCollection<Integer>
- Specified by:
remove
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
removeAll
public boolean removeAll(Collection<?> p_c)
- Specified by:
removeAll
in interfaceCollection<Integer>
- Specified by:
removeAll
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
retainAll
public boolean retainAll(Collection<?> p_c)
- Specified by:
retainAll
in interfaceCollection<Integer>
- Specified by:
retainAll
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
set
public Integer set(int p_index, Integer p_element)
- Specified by:
set
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
size
public int size()
-
subList
public List<Integer> subList(int p_fromIndex, int p_toIndex)
- Specified by:
subList
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
toArray
public Object[] toArray()
An array that contains the width and height, in that order.
-
toArray
public <T> T[] toArray(T[] p_array)
- Specified by:
toArray
in interfaceCollection<Integer>
- Specified by:
toArray
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
-