Class ArrayMutabilityPlan<T>

  extended by<T>
      extended by<T>
All Implemented Interfaces:
Serializable, MutabilityPlan<T>

public class ArrayMutabilityPlan<T>
extends MutableMutabilityPlan<T>

A mutability plan for arrays. Specifically arrays of immutable element type; since the elements themselves are immutable, a shallow copy is enough.

See Also:
Serialized Form

Field Summary
static ArrayMutabilityPlan INSTANCE
Constructor Summary
Method Summary
 T deepCopyNotNull(T value)
Methods inherited from class
assemble, deepCopy, disassemble, isMutable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static final ArrayMutabilityPlan INSTANCE
Constructor Detail


public ArrayMutabilityPlan()
Method Detail


public T deepCopyNotNull(T value)
Specified by:
deepCopyNotNull in class MutableMutabilityPlan<T>

Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.