pnuts.lang
Interface Indexed


public interface Indexed

Index-access to an instance of this interface is interpreted as the set/get method call, which are defined in the implementation class.

 
  indexed[idx]          ==> indexed.get(idx)
  indexed[idx] = value  ==> indexed.set(idx, value)
  
 


Method Summary
 java.lang.Object get(int idx)
          Read access to the index
 void set(int idx, java.lang.Object value)
          Write access to the index
 

Method Detail

set

void set(int idx,
         java.lang.Object value)
Write access to the index

Parameters:
idx - the index
value - the object to be assigned

get

java.lang.Object get(int idx)
Read access to the index

Parameters:
idx - the index