src/main/java/com/antbrains/wordseg/luceneanalyzer/AttributeSource.java
public final void copyTo(AttributeSource target) {
    for (State state = getCurrentState(); state != null; state = state.next) {
      final AttributeImpl targetImpl = target.attributeImpls.get(state.attribute.getClass());
      if (targetImpl == null) {
        throw new IllegalArgumentException("This AttributeSource contains AttributeImpl of type "
            + state.attribute.getClass().getName() + " that is not in the target");
      }
      state.attribute.copyTo(targetImpl);
    }
  }
/**
   * Copies the contents of this {@code AttributeSource} to the given target {@code AttributeSource}
   * . The given instance has to provide all {@link Attribute}s this instance contains. The actual
   * attribute implementations must be identical in both {@code AttributeSource} instances; ideally
   * both AttributeSource instances should use the same {@link AttributeFactory}. You can use this
   * method as a replacement for {@link #restoreState}, if you use {@link #cloneAttributes} instead
   * of {@link #captureState}.
   */
Copies the contents of this  AttributeSource to the given target  AttributeSource
. The given instance has to provide all  Attributes this instance contains. The actual
attribute implementations must be identical in both  AttributeSource instances; ideally
both AttributeSource instances should use the same  AttributeFactory. You can use this
method as a replacement for  #restoreState, if you use  #cloneAttributes instead
of  #captureState.
Copies the contents of this AttributeSource to the given target AttributeSource . The given instance has to provide all Attributes this instance contains . The actual attribute implementations must be identical in both AttributeSource instances ; ideally both AttributeSource instances should use the same AttributeFactory . You can use this method as a replacement for #restoreState if you use #cloneAttributes instead of #captureState .
public final void copyTo(AttributeSource target) {
    for (State state = getCurrentState(); state != null; state = state.next) {
      final AttributeImpl targetImpl = target.attributeImpls.get(state.attribute.getClass());
      if (targetImpl == null) {
        throw new IllegalArgumentException("This AttributeSource contains AttributeImpl of type "
            + state.attribute.getClass().getName() + " that is not in the target");
      }
      state.attribute.copyTo(targetImpl);
    }
  }
public final void copyTo ( AttributeSource target ) { for ( State state = getCurrentState ( ) ; state != null ; state = state . next ) { final AttributeImpl targetImpl = target . attributeImpls . get ( state . attribute . getClass ( ) ) ; if ( targetImpl == null ) { throw new IllegalArgumentException ( "This AttributeSource contains AttributeImpl of type " + state . attribute . getClass ( ) . getName ( ) + " that is not in the target" ) ; } state . attribute . copyTo ( targetImpl ) ; } }
Copies the contents of this {@code AttributeSource} to the given target {@code AttributeSource}
 .
Copies the contents of this { @code AttributeSource } to the given target { @code AttributeSource } .