org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute
Class AttributeSetterEInt
java.lang.Object
org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute.AttributeSetter<Integer>
org.eclipse.emf.emfstore.internal.modelmutator.intern.attribute.AttributeSetterEInt
public class AttributeSetterEInt
- extends AttributeSetter<Integer>
Class for creating random Integer values.
- Author:
- Eugen Neufeld, Stephan Koehler, Philip Achenbach
- See Also:
AttributeSetter
AttributeSetterEInt
public AttributeSetterEInt(Random random)
- Creates a new AttributeSetter for Integer attributes.
- Parameters:
random
- Random object used to create attribute values
createNewAttribute
public Integer createNewAttribute()
- Creates one attribute of type
E
.
The result is determined by random
.
- Specified by:
createNewAttribute
in class AttributeSetter<Integer>
- Returns:
- the created attribute
createNewAttributes
public Collection<Integer> createNewAttributes(int maxAmount)
- Creates a collection of attributes of type
E
.
The result is determined by random
.
- Specified by:
createNewAttributes
in class AttributeSetter<Integer>
- Parameters:
maxAmount
- the maximum amount of attributes to create
- Returns:
- all created attributes as a collection
Copyright © 2015. All Rights Reserved.