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