de.uplanet.lucy.server.scripting.groovy
Class Size

java.lang.Object
  extended by de.uplanet.lucy.server.scripting.groovy.Size
All Implemented Interfaces:
java.lang.Iterable<java.lang.Integer>, java.util.Collection<java.lang.Integer>, java.util.List<java.lang.Integer>

@Scriptable
public final class Size
extends java.lang.Object
implements java.util.List<java.lang.Integer>

Version:
$Revision: 74108 $

Constructor Summary
Size(int p_iWidth, int p_iHeight)
           
 
Method Summary
 boolean add(java.lang.Integer p_e)
           
 void add(int p_index, java.lang.Integer p_element)
           
 boolean addAll(java.util.Collection<? extends java.lang.Integer> p_c)
           
 boolean addAll(int p_index, java.util.Collection<? extends java.lang.Integer> p_c)
           
 void clear()
           
 boolean contains(java.lang.Object p_o)
           
 boolean containsAll(java.util.Collection<?> p_c)
           
 java.lang.Integer get(int p_iIndex)
           
 java.lang.Integer getHeight()
          Get the height.
 java.lang.Integer getWidth()
          Get the width.
 java.lang.Integer getX()
          Get the width.
 java.lang.Integer getY()
          Get the height.
 int indexOf(java.lang.Object p_o)
           
 boolean isEmpty()
           
 java.util.Iterator<java.lang.Integer> iterator()
           
 int lastIndexOf(java.lang.Object p_o)
           
 java.util.ListIterator<java.lang.Integer> listIterator()
           
 java.util.ListIterator<java.lang.Integer> listIterator(int p_iIndex)
           
 java.lang.Integer remove(int p_iIndex)
           
 boolean remove(java.lang.Object p_o)
           
 boolean removeAll(java.util.Collection<?> p_c)
           
 boolean retainAll(java.util.Collection<?> p_c)
           
 java.lang.Integer set(int p_index, java.lang.Integer p_element)
           
 int size()
           
 java.util.List<java.lang.Integer> subList(int p_fromIndex, int p_toIndex)
           
 java.lang.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.List
equals, hashCode
 

Constructor Detail

Size

public Size(int p_iWidth,
            int p_iHeight)
Parameters:
p_iWidth - The width.
p_iHeight - The height.
Method Detail

getWidth

public java.lang.Integer getWidth()
Get the width.

Returns:
The width.

getX

public java.lang.Integer getX()
Get the width.

Returns:
The width.

getHeight

public java.lang.Integer getHeight()
Get the height.

Returns:
The height.

getY

public java.lang.Integer getY()
Get the height.

Returns:
The height.

add

public void add(int p_index,
                java.lang.Integer p_element)
Specified by:
add in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

add

public boolean add(java.lang.Integer p_e)
Specified by:
add in interface java.util.Collection<java.lang.Integer>
Specified by:
add in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

addAll

public boolean addAll(java.util.Collection<? extends java.lang.Integer> p_c)
Specified by:
addAll in interface java.util.Collection<java.lang.Integer>
Specified by:
addAll in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

addAll

public boolean addAll(int p_index,
                      java.util.Collection<? extends java.lang.Integer> p_c)
Specified by:
addAll in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

clear

public void clear()
Specified by:
clear in interface java.util.Collection<java.lang.Integer>
Specified by:
clear in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

contains

public boolean contains(java.lang.Object p_o)
Specified by:
contains in interface java.util.Collection<java.lang.Integer>
Specified by:
contains in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

containsAll

public boolean containsAll(java.util.Collection<?> p_c)
Specified by:
containsAll in interface java.util.Collection<java.lang.Integer>
Specified by:
containsAll in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

get

public java.lang.Integer get(int p_iIndex)
Specified by:
get in interface java.util.List<java.lang.Integer>

indexOf

public int indexOf(java.lang.Object p_o)
Specified by:
indexOf in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<java.lang.Integer>
Specified by:
isEmpty in interface java.util.List<java.lang.Integer>
Returns:
Always false.

iterator

public java.util.Iterator<java.lang.Integer> iterator()
Specified by:
iterator in interface java.lang.Iterable<java.lang.Integer>
Specified by:
iterator in interface java.util.Collection<java.lang.Integer>
Specified by:
iterator in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

lastIndexOf

public int lastIndexOf(java.lang.Object p_o)
Specified by:
lastIndexOf in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

listIterator

public java.util.ListIterator<java.lang.Integer> listIterator()
Specified by:
listIterator in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

listIterator

public java.util.ListIterator<java.lang.Integer> listIterator(int p_iIndex)
Specified by:
listIterator in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

remove

public java.lang.Integer remove(int p_iIndex)
Specified by:
remove in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

remove

public boolean remove(java.lang.Object p_o)
Specified by:
remove in interface java.util.Collection<java.lang.Integer>
Specified by:
remove in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

removeAll

public boolean removeAll(java.util.Collection<?> p_c)
Specified by:
removeAll in interface java.util.Collection<java.lang.Integer>
Specified by:
removeAll in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

retainAll

public boolean retainAll(java.util.Collection<?> p_c)
Specified by:
retainAll in interface java.util.Collection<java.lang.Integer>
Specified by:
retainAll in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

set

public java.lang.Integer set(int p_index,
                             java.lang.Integer p_element)
Specified by:
set in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

size

public int size()
Specified by:
size in interface java.util.Collection<java.lang.Integer>
Specified by:
size in interface java.util.List<java.lang.Integer>
Returns:
Always 2.

subList

public java.util.List<java.lang.Integer> subList(int p_fromIndex,
                                                 int p_toIndex)
Specified by:
subList in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.

toArray

public java.lang.Object[] toArray()
An array that contains the width and height, in that order.

Specified by:
toArray in interface java.util.Collection<java.lang.Integer>
Specified by:
toArray in interface java.util.List<java.lang.Integer>

toArray

public <T> T[] toArray(T[] p_array)
Specified by:
toArray in interface java.util.Collection<java.lang.Integer>
Specified by:
toArray in interface java.util.List<java.lang.Integer>
Throws:
Always - a java.lang.UnsupportedOperationException.


Last updated: 2011-08-11 10-04
Copyright © 2000-2011 United Planet. All Rights Reserved.