1 package com.google.code.beanmatchers; 2 3 import java.util.Random; 4 5 class LongGenerator implements ValueGenerator<Long> { 6 7 private final Random random; 8 9 public LongGenerator(Random random) { 10 this.random = random; 11 } 12 13 public Long generate() { 14 return random.nextLong(); 15 } 16 }