Class Size
java.lang.Object
de.uplanet.lucy.server.scripting.groovy.Size
- All Implemented Interfaces:
Iterable<Integer>,Collection<Integer>,List<Integer>,SequencedCollection<Integer>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int p_index, Collection<? extends Integer> p_c) booleanaddAll(Collection<? extends Integer> p_c) voidclear()booleanbooleancontainsAll(Collection<?> p_c) get(int p_iIndex) Get the height.getWidth()Get the width.getX()Get the width.getY()Get the height.intbooleanisEmpty()iterator()intlastIndexOf(Object p_o) listIterator(int p_iIndex) remove(int p_iIndex) booleanbooleanremoveAll(Collection<?> p_c) booleanretainAll(Collection<?> p_c) intsize()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, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
Size
public Size(int p_iWidth, int p_iHeight) - Parameters:
p_iWidth- The width.p_iHeight- The height.
-
-
Method Details
-
getWidth
Get the width.- Returns:
- The width.
-
getX
Get the width.- Returns:
- The width.
-
getHeight
Get the height.- Returns:
- The height.
-
getY
Get the height.- Returns:
- The height.
-
add
- Specified by:
addin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
add
- Specified by:
addin interfaceCollection<Integer>- Specified by:
addin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
addAll
- Specified by:
addAllin interfaceCollection<Integer>- Specified by:
addAllin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
addAll
- Specified by:
addAllin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
clear
public void clear()- Specified by:
clearin interfaceCollection<Integer>- Specified by:
clearin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
contains
- Specified by:
containsin interfaceCollection<Integer>- Specified by:
containsin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
containsAll
- Specified by:
containsAllin interfaceCollection<Integer>- Specified by:
containsAllin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
get
-
indexOf
- Specified by:
indexOfin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iteratorin interfaceCollection<Integer>- Specified by:
iteratorin interfaceIterable<Integer>- Specified by:
iteratorin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
listIterator
- Specified by:
listIteratorin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
listIterator
- Specified by:
listIteratorin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
remove
- Specified by:
removein interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
remove
- Specified by:
removein interfaceCollection<Integer>- Specified by:
removein interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
removeAll
- Specified by:
removeAllin interfaceCollection<Integer>- Specified by:
removeAllin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
retainAll
- Specified by:
retainAllin interfaceCollection<Integer>- Specified by:
retainAllin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
set
- Specified by:
setin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
size
public int size() -
subList
- Specified by:
subListin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-
toArray
An array that contains the width and height, in that order. -
toArray
public <T> T[] toArray(T[] p_array) - Specified by:
toArrayin interfaceCollection<Integer>- Specified by:
toArrayin interfaceList<Integer>- Throws:
UnsupportedOperationException- Always.
-