it.unimi.di.mg4j.index.remote
Class RemoteSizeList

java.lang.Object
  extended by java.util.AbstractCollection<Integer>
      extended by it.unimi.dsi.fastutil.ints.AbstractIntCollection
          extended by it.unimi.dsi.fastutil.ints.AbstractIntList
              extended by it.unimi.di.mg4j.index.remote.RemoteSizeList
All Implemented Interfaces:
IntCollection, IntIterable, IntList, IntStack, Stack<Integer>, Serializable, Comparable<List<? extends Integer>>, Iterable<Integer>, Collection<Integer>, List<Integer>

public class RemoteSizeList
extends AbstractIntList
implements Serializable

A class accessing remotely a LongList.

Author:
Alessandro Arrabito, Sebastiano Vigna
See Also:
Serialized Form

Nested Class Summary
static class RemoteSizeList.ServerThread
           
 
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.ints.AbstractIntList
AbstractIntList.IntSubList
 
Constructor Summary
RemoteSizeList(SocketAddress addr, int size)
          Creates a new remote long list.
 
Method Summary
 int getInt(int index)
           
 int size()
           
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntList
add, add, add, addAll, addAll, addAll, addAll, addAll, addAll, addElements, addElements, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, get, getElements, hashCode, indexOf, indexOf, intListIterator, intListIterator, intSubList, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, peek, peekInt, pop, popInt, push, push, rem, remove, remove, removeElements, removeInt, set, set, size, subList, top, topInt, toString
 
Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntCollection
add, contains, containsAll, containsAll, intIterator, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toIntArray, toIntArray
 
Methods inherited from class java.util.AbstractCollection
clear
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, clear, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntCollection
containsAll, intIterator, removeAll, retainAll, toArray, toArray, toIntArray, toIntArray
 
Methods inherited from interface it.unimi.dsi.fastutil.Stack
isEmpty
 

Constructor Detail

RemoteSizeList

public RemoteSizeList(SocketAddress addr,
                      int size)
Creates a new remote long list.

Parameters:
addr - the address of the socket assigned to the server thread.
size - the size of the list.
Method Detail

getInt

public int getInt(int index)
Specified by:
getInt in interface IntList

size

public int size()
Specified by:
size in interface Collection<Integer>
Specified by:
size in interface List<Integer>
Specified by:
size in class AbstractCollection<Integer>