Class KindBasedStore<T>
- java.lang.Object
-
- org.eclipse.cdt.core.settings.model.util.KindBasedStore<T>
-
- Type Parameters:
T- - stored type
- All Implemented Interfaces:
java.lang.Cloneable
public class KindBasedStore<T> extends java.lang.Object implements java.lang.CloneableA storage where stored data is organized by "kind". In most cases kind is one ofICLanguageSettingEntry, i.e. include path, macro etc.
-
-
Field Summary
Fields Modifier and Type Field Description static intORED_ALL_ENTRY_KINDSstatic intORED_LANG_ENTRY_KINDS
-
Constructor Summary
Constructors Constructor Description KindBasedStore()KindBasedStore(boolean langOnly)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()java.lang.Objectclone()Tget(int kind)static int[]getAllEntryKinds()IKindBasedInfo<T>[]getContents()IKindBasedInfo<T>getInfo(int kind)static int[]getLanguageEntryKinds()Tput(int kind, T object)
-
-
-
Field Detail
-
ORED_LANG_ENTRY_KINDS
public static final int ORED_LANG_ENTRY_KINDS
- See Also:
- Constant Field Values
-
ORED_ALL_ENTRY_KINDS
public static final int ORED_ALL_ENTRY_KINDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLanguageEntryKinds
public static int[] getLanguageEntryKinds()
-
getAllEntryKinds
public static int[] getAllEntryKinds()
-
get
public T get(int kind)
-
getContents
public IKindBasedInfo<T>[] getContents()
-
getInfo
public IKindBasedInfo<T> getInfo(int kind)
-
clear
public void clear()
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
-