Class KindBasedStore<T>
- java.lang.Object
-
- org.eclipse.cdt.core.settings.model.util.KindBasedStore<T>
-
- Type Parameters:
T
- - stored type
- All Implemented Interfaces:
Cloneable
public class KindBasedStore<T> extends Object implements Cloneable
A 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 int
ORED_ALL_ENTRY_KINDS
static int
ORED_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 void
clear()
Object
clone()
T
get(int kind)
static int[]
getAllEntryKinds()
IKindBasedInfo<T>[]
getContents()
IKindBasedInfo<T>
getInfo(int kind)
static int[]
getLanguageEntryKinds()
T
put(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()
-
-