org.sourceforge.jemm.client.shared
Class ValueEncoder

java.lang.Object
  extended by org.sourceforge.jemm.client.shared.ValueEncoder

public abstract class ValueEncoder
extends java.lang.Object


Constructor Summary
ValueEncoder()
           
 
Method Summary
abstract
<K> K
encode(K value)
           
<K> K[]
encodeArray(K[] values)
          Creates an encoded copy of the given array, does not alter the original array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueEncoder

public ValueEncoder()
Method Detail

encode

public abstract <K> K encode(K value)

encodeArray

public <K> K[] encodeArray(K[] values)
Creates an encoded copy of the given array, does not alter the original array.

Type Parameters:
K - The array type
Parameters:
values - The original array
Returns:
A copy of the array with all values encoded.


Copyright © 2009. All Rights Reserved.