net.walend.grid
Interface MutableGrid

All Superinterfaces:
java.util.Collection, Grid, HasState
All Known Subinterfaces:
MutableGrid2D
All Known Implementing Classes:
MutableArrayGrid2D, MutableMapGrid2D

public interface MutableGrid
extends Grid

MutableGrid adds methods to change Grids.

Author:
David Walend dfw1@cornell.edu

Method Summary
 java.lang.Object put(Address address, java.lang.Object object)
          Replace the Object at address with object.
 java.lang.Object take(Address address)
          Replace the Object at Address with fill.
 
Methods inherited from interface net.walend.grid.Grid
addressIterator, addressOf, containsAddress, containsDimension, get, getDimensions, getFillObject, maxAddress, stripeIterator
 
Methods inherited from interface net.walend.collection.HasState
getPrincipleInterface, sameStateAs
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

put

public java.lang.Object put(Address address,
                            java.lang.Object object)
                     throws OffGridException
Replace the Object at address with object.

Returns:
the Object that was at Address.
OffGridException

take

public java.lang.Object take(Address address)
                      throws OffGridException
Replace the Object at Address with fill.

Returns:
the Object that was at Address.
OffGridException


Copyright (c) 2001, 2002, David Walend