com.alogic.idnote.loader.CachedLoader Maven / Gradle / Ivy
package com.alogic.idnote.loader;
import com.alogic.idnote.IdNote;
import com.alogic.idnote.IdNoteGroup;
import com.alogic.load.Loader;
/**
* Cached
* @author yyduan
* @since 1.6.12.13 [20181213 duanyy]
*/
public class CachedLoader extends Loader.Cached implements IdNoteGroup{
@Override
public String getNote(String id, String dft) {
IdNote note = getNote(id);
return note != null ? note.getNote() : dft;
}
@Override
public IdNote getNote(String id) {
return load(id, true);
}
}