/** Replaces the <code>Instance</code> at position * <code>index</code> with a new one. Note that this is the only * sanctioned way of changing an Instance. */ public Instance set (int index, Instance instance) { InstanceList page = getPageForIndex (index, true); return page.set (index % this.instancesPerPage, instance); }
/** Replaces the <code>Instance</code> at position * <code>index</code> with a new one. Note that this is the only * sanctioned way of changing an Instance. */ public Instance set (int index, Instance instance) { InstanceList page = getPageForIndex (index, true); return page.set (index % this.instancesPerPage, instance); }
/** Replaces the <code>Instance</code> at position * <code>index</code> with a new one. Note that this is the only * sanctioned way of changing an Instance. */ public Instance set (int index, Instance instance) { InstanceList page = getPageForIndex (index, true); return page.set (index % this.instancesPerPage, instance); }
public Instance set (int index, Instance instance) { int i = getOffsetIndex (index); return this.lists[i].set (index - this.offsets[i], instance); }
public Instance set (int index, Instance instance) { int i = getOffsetIndex (index); return this.lists[i].set (index - this.offsets[i], instance); }
public Instance set (int index, Instance instance) { int i = getOffsetIndex (index); return this.lists[i].set (index - this.offsets[i], instance); }
/** Replaces the <code>Instance</code> at position <code>index</code> * with a new one. */ public void setInstance (int index, Instance instance) { assert (this.getDataAlphabet().equals(instance.getDataAlphabet())); assert (this.getTargetAlphabet().equals(instance.getTargetAlphabet())); this.set(index, instance); }
/** Replaces the <code>Instance</code> at position <code>index</code> * with a new one. */ public void setInstance (int index, Instance instance) { assert (this.getDataAlphabet().equals(instance.getDataAlphabet())); assert (this.getTargetAlphabet().equals(instance.getTargetAlphabet())); this.set(index, instance); }
/** Replaces the <code>Instance</code> at position <code>index</code> * with a new one. */ public void setInstance (int index, Instance instance) { assert (this.getDataAlphabet().equals(instance.getDataAlphabet())); assert (this.getTargetAlphabet().equals(instance.getTargetAlphabet())); this.set(index, instance); }