org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute
Class AttributeSetterEByteArray

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute.AttributeSetter<byte[]>
      extended by org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute.AttributeSetterEByteArray

public class AttributeSetterEByteArray
extends AttributeSetter<byte[]>

Class for creating random Byte[] values.

Author:
Eugen Neufeld, Stephan Koehler, Philip Achenbach
See Also:
AttributeSetter

Constructor Summary
AttributeSetterEByteArray(Random random, int bytesize)
          Creates a new AttributeSetter for Byte[] attributes.
 
Method Summary
 byte[] createNewAttribute()
          Creates one attribute of type E.
 Collection<byte[]> createNewAttributes(int maxAmount)
          Creates a collection of attributes of type E.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute.AttributeSetter
getRandom
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeSetterEByteArray

public AttributeSetterEByteArray(Random random,
                                 int bytesize)
Creates a new AttributeSetter for Byte[] attributes.

Parameters:
random - Random object used to create attribute values
bytesize - length of the Byte-array
Method Detail

createNewAttribute

public byte[] createNewAttribute()
Creates one attribute of type E. The result is determined by random.

Specified by:
createNewAttribute in class AttributeSetter<byte[]>
Returns:
the created attribute

createNewAttributes

public Collection<byte[]> createNewAttributes(int maxAmount)
Creates a collection of attributes of type E. The result is determined by random.

Specified by:
createNewAttributes in class AttributeSetter<byte[]>
Parameters:
maxAmount - the maximum amount of attributes to create
Returns:
all created attributes as a collection


Copyright © 2015. All Rights Reserved.