public List<ClassLoadingInformationData> createDataObjects(int countOfObjects){
  List<ClassLoadingInformationData> tempObjects=new ArrayList<>();
  long currentTime=1221469200000L;
  for (int i=0; i < countOfObjects; i++) {
    ClassLoadingInformationData data=new ClassLoadingInformationData(new Timestamp(currentTime),1,5);
    currentTime+=5000L;
    int count=5;
    data.setCount(count);
    data.setId(-1L);
    data.setMinLoadedClassCount(2000 + i);
    data.setMaxLoadedClassCount(3000 + i);
    int totalLoadedClassCount=(((data.getMinLoadedClassCount() + data.getMaxLoadedClassCount())) / 2) / count;
    data.setTotalLoadedClassCount(totalLoadedClassCount);
    data.setMinUnloadedClassCount(20 + i);
    data.setMaxUnloadedClassCount(30 + i);
    long totalUnloadedClassCount=((data.getMinUnloadedClassCount() + data.getMaxUnloadedClassCount()) / 2) / count;
    data.setTotalUnloadedClassCount(totalUnloadedClassCount);
    data.setMinTotalLoadedClassCount(10000);
    data.setMaxTotalLoadedClassCount(15000);
    long totalTotalLoadedClassCount=((data.getMinTotalLoadedClassCount() + data.getMaxTotalLoadedClassCount()) / 2) / count;
    data.setTotalTotalLoadedClassCount(totalTotalLoadedClassCount);
    tempObjects.add(data);
  }
  return tempObjects;
}

public List < ClassLoadingInformationData > createDataObjects ( int countOfObjects ) { List < ClassLoadingInformationData > tempObjects = new ArrayList < > ( ) ; long currentTime = 1221469200000L ; for ( int i = 0 ; i < countOfObjects ; i ++ ) { ClassLoadingInformationData data = new ClassLoadingInformationData ( new Timestamp ( currentTime ) , 1 , 5 ) ; currentTime += 5000L ; int count = 5 ; data . setCount ( count ) ; data . setId ( - 1L ) ; data . setMinLoadedClassCount ( 2000 + i ) ; data . setMaxLoadedClassCount ( 3000 + i ) ; int totalLoadedClassCount = ( ( ( data . getMinLoadedClassCount ( ) + data . getMaxLoadedClassCount ( ) ) ) / 2 ) / count ; data . setTotalLoadedClassCount ( totalLoadedClassCount ) ; data . setMinUnloadedClassCount ( 20 + i ) ; data . setMaxUnloadedClassCount ( 30 + i ) ; long totalUnloadedClassCount = ( ( data . getMinUnloadedClassCount ( ) + data . getMaxUnloadedClassCount ( ) ) / 2 ) / count ; data . setTotalUnloadedClassCount ( totalUnloadedClassCount ) ; data . setMinTotalLoadedClassCount ( 10000 ) ; data . setMaxTotalLoadedClassCount ( 15000 ) ; long totalTotalLoadedClassCount = ( ( data . getMinTotalLoadedClassCount ( ) + data . getMaxTotalLoadedClassCount ( ) ) / 2 ) / count ; data . setTotalTotalLoadedClassCount ( totalTotalLoadedClassCount ) ; tempObjects . add ( data ) ; } return tempObjects ; }
creates countofobjects data objects .
