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 TypeMethodDescriptionvoid
boolean
boolean
addAll
(int p_index, Collection<? extends Integer> p_c) boolean
addAll
(Collection<? extends Integer> p_c) void
clear()
boolean
boolean
containsAll
(Collection<?> p_c) get
(int p_iIndex) Get the height.getWidth()
Get the width.getX()
Get the width.getY()
Get the height.int
boolean
isEmpty()
iterator()
int
lastIndexOf
(Object p_o) listIterator
(int p_iIndex) remove
(int p_iIndex) boolean
boolean
removeAll
(Collection<?> p_c) boolean
retainAll
(Collection<?> p_c) int
size()
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
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:
add
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
add
- Specified by:
add
in interfaceCollection<Integer>
- Specified by:
add
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
addAll
- Specified by:
addAll
in interfaceCollection<Integer>
- Specified by:
addAll
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
addAll
- 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
- Specified by:
contains
in interfaceCollection<Integer>
- Specified by:
contains
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
containsAll
- Specified by:
containsAll
in interfaceCollection<Integer>
- Specified by:
containsAll
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
get
-
indexOf
- Specified by:
indexOf
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
isEmpty
public boolean isEmpty() -
iterator
- Specified by:
iterator
in interfaceCollection<Integer>
- Specified by:
iterator
in interfaceIterable<Integer>
- Specified by:
iterator
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
listIterator
- Specified by:
listIterator
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
listIterator
- Specified by:
listIterator
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
remove
- Specified by:
remove
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
remove
- Specified by:
remove
in interfaceCollection<Integer>
- Specified by:
remove
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
removeAll
- Specified by:
removeAll
in interfaceCollection<Integer>
- Specified by:
removeAll
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
retainAll
- Specified by:
retainAll
in interfaceCollection<Integer>
- Specified by:
retainAll
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
set
- Specified by:
set
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-
size
public int size() -
subList
- Specified by:
subList
in 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:
toArray
in interfaceCollection<Integer>
- Specified by:
toArray
in interfaceList<Integer>
- Throws:
UnsupportedOperationException
- Always.
-