TrackerPreheat { public boolean isEmpty() { return map.isEmpty(); } TrackerPreheat(); User getUser(); String getUsername(); void setUser( User user ); T get( TrackerIdentifier identifier,
        Class<? extends IdentifiableObject> klass, IdentifiableObject object ); @SuppressWarnings( "unchecked" ) T get( TrackerIdScheme identifier, Class<? extends IdentifiableObject> klass,
        String key ); List<T> getAll( TrackerIdentifier identifier, List<T> keys ); @SuppressWarnings( "unchecked" ) List<T> getAll( TrackerIdScheme identifier, Class<T> klass ); @SuppressWarnings( "unchecked" ) T get( TrackerIdentifier identifier, T object ); boolean containsKey( TrackerIdScheme identifier, Class<? extends IdentifiableObject> klass, String key ); boolean isEmpty(); boolean isEmpty( TrackerIdScheme identifier ); boolean isEmpty( TrackerIdScheme identifier, Class<? extends IdentifiableObject> klass ); @SuppressWarnings( "unchecked" ) TrackerPreheat put( TrackerIdentifier identifier, T object ); @SuppressWarnings( "unchecked" ) TrackerPreheat replace( TrackerIdentifier identifier, T object ); TrackerPreheat put( TrackerIdentifier identifier, Collection<T> objects ); TrackerPreheat remove( TrackerIdScheme identifier, Class<? extends IdentifiableObject> klass, String key ); @SuppressWarnings( "unchecked" ) TrackerPreheat remove( TrackerIdentifier identifier, IdentifiableObject object ); TrackerPreheat remove( TrackerIdScheme identifier, Class<? extends IdentifiableObject> klass,
        Collection<String> keys ); Map<TrackerIdScheme, Map<Class<? extends IdentifiableObject>, Map<String, IdentifiableObject>>> getMap(); Map<Class<? extends IdentifiableObject>, IdentifiableObject> getDefaults(); void setDefaults( Map<Class<? extends IdentifiableObject>, IdentifiableObject> defaults ); Map<String, Period> getPeriodMap(); void setPeriodMap( Map<String, Period> periodMap ); Map<String, PeriodType> getPeriodTypeMap(); void setPeriodTypeMap( Map<String, PeriodType> periodTypeMap ); Set<String> getUniqueTrackedEntityAttributes(); void setUniqueTrackedEntityAttributes( Set<String> uniqueTrackedEntityAttributes ); Map<String, String> getMandatoryProgramAttributes(); void setMandatoryProgramAttributes( Map<String, String> mandatoryProgramAttributes ); Map<TrackerIdScheme, Map<String, TrackedEntityInstance>> getTrackedEntities(); void setTrackedEntities( Map<TrackerIdScheme, Map<String, TrackedEntityInstance>> trackedEntities ); TrackedEntityInstance getTrackedEntity( TrackerIdScheme identifier, String trackedEntity ); void putTrackedEntities( TrackerIdScheme identifier, List<TrackedEntityInstance> trackedEntityInstances ); Map<TrackerIdScheme, Map<String, TrackedEntityAttributeValue>> getTrackedEntityAttributes(); void setTrackedEntityAttributes(
        Map<TrackerIdScheme, Map<String, TrackedEntityAttributeValue>> trackedEntityAttributes ); Map<TrackerIdScheme, Map<String, ProgramInstance>> getEnrollments(); void setEnrollments( Map<TrackerIdScheme, Map<String, ProgramInstance>> enrollments ); ProgramInstance getEnrollment( TrackerIdScheme identifier, String enrollment ); void putEnrollments( TrackerIdScheme identifier, List<ProgramInstance> programInstances ); void putEnrollment( TrackerIdScheme identifier, String enrollment, ProgramInstance programInstance ); Map<TrackerIdScheme, Map<String, ProgramStageInstance>> getEvents(); void setEvents( Map<TrackerIdScheme, Map<String, ProgramStageInstance>> events ); ProgramStageInstance getEvent( TrackerIdScheme identifier, String event ); void putEvents( TrackerIdScheme identifier, List<ProgramStageInstance> programStageInstances ); void putEvent( TrackerIdScheme identifier, String event, ProgramStageInstance programStageInstance ); Map<TrackerIdScheme, Map<String, Relationship>> getRelationships(); void setRelationships( Map<TrackerIdScheme, Map<String, Relationship>> relationships ); Relationship getRelationship( TrackerIdScheme identifier, String relationship ); void putRelationships( TrackerIdScheme identifier, List<Relationship> relationships ); void putRelationship( TrackerIdScheme identifier, String relationshipUid, Relationship relationship ); static Class<?> getRealClass( Class<?> klass ); static boolean isDefaultClass( IdentifiableObject object ); static boolean isDefaultClass( Class<?> klass ); boolean isDefault( IdentifiableObject object ); TrackerIdentifierParams getIdentifiers(); void setIdentifiers( TrackerIdentifierParams identifiers ); Map<String, List<ProgramInstance>> getProgramInstances(); void setProgramInstances(Map<String, List<ProgramInstance>> programInstances); @Override String toString();  }
@Test public void testAllEmpty() { TrackerPreheat preheat = new TrackerPreheat(); assertTrue( preheat.isEmpty() ); assertTrue( preheat.isEmpty( TrackerIdScheme.UID ) ); assertTrue( preheat.isEmpty( TrackerIdScheme.CODE ) ); }