org.ujmp.core.util
Class CoordinateSetToLongWrapper

java.lang.Object
  extended by org.ujmp.core.util.CoordinateSetToLongWrapper
All Implemented Interfaces:
Iterable<long[]>, Collection<long[]>, Set<long[]>, Wrapper<Set<Coordinates>>

public class CoordinateSetToLongWrapper
extends Object
implements Set<long[]>, Wrapper<Set<Coordinates>>


Constructor Summary
CoordinateSetToLongWrapper(Set<Coordinates> set)
           
 
Method Summary
 boolean add(long[] e)
           
 boolean addAll(Collection<? extends long[]> c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection<?> c)
           
 Set<Coordinates> getWrappedObject()
          Returns the object that is wrapped inside the wrapper
 boolean isEmpty()
           
 Iterator<long[]> iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 void setWrappedObject(Set<Coordinates> object)
          Sets the object that is wrapped inside the wrapper
 int size()
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Set
equals, hashCode
 

Constructor Detail

CoordinateSetToLongWrapper

public CoordinateSetToLongWrapper(Set<Coordinates> set)
Method Detail

getWrappedObject

public Set<Coordinates> getWrappedObject()
Description copied from interface: Wrapper
Returns the object that is wrapped inside the wrapper

Specified by:
getWrappedObject in interface Wrapper<Set<Coordinates>>
Returns:
the inner object

setWrappedObject

public void setWrappedObject(Set<Coordinates> object)
Description copied from interface: Wrapper
Sets the object that is wrapped inside the wrapper

Specified by:
setWrappedObject in interface Wrapper<Set<Coordinates>>
Parameters:
object - new objects to wrap

add

public boolean add(long[] e)
Specified by:
add in interface Collection<long[]>
Specified by:
add in interface Set<long[]>

addAll

public boolean addAll(Collection<? extends long[]> c)
Specified by:
addAll in interface Collection<long[]>
Specified by:
addAll in interface Set<long[]>

clear

public void clear()
Specified by:
clear in interface Collection<long[]>
Specified by:
clear in interface Set<long[]>

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection<long[]>
Specified by:
contains in interface Set<long[]>

containsAll

public boolean containsAll(Collection<?> c)
Specified by:
containsAll in interface Collection<long[]>
Specified by:
containsAll in interface Set<long[]>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection<long[]>
Specified by:
isEmpty in interface Set<long[]>

iterator

public Iterator<long[]> iterator()
Specified by:
iterator in interface Iterable<long[]>
Specified by:
iterator in interface Collection<long[]>
Specified by:
iterator in interface Set<long[]>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<long[]>
Specified by:
remove in interface Set<long[]>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<long[]>
Specified by:
removeAll in interface Set<long[]>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<long[]>
Specified by:
retainAll in interface Set<long[]>

size

public int size()
Specified by:
size in interface Collection<long[]>
Specified by:
size in interface Set<long[]>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<long[]>
Specified by:
toArray in interface Set<long[]>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<long[]>
Specified by:
toArray in interface Set<long[]>


Copyright © 2010. All Rights Reserved.