C# Класс Nez.ListPool

simple static class that can be used to pool Lists
Показать файл Открыть проект

Открытые методы

Метод Описание
clearCache ( ) : void

clears out the cache

free ( List obj ) : void

pushes an item back on the stack

obtain ( ) : List

pops an item off the stack if available creating a new item as necessary

trimCache ( int cacheCount ) : void

trims the cache down to cacheCount items

warmCache ( int cacheCount ) : void

warms up the cache filling it with a max of cacheCount objects

Описание методов

clearCache() публичный статический Метод

clears out the cache
public static clearCache ( ) : void
Результат void

free() публичный статический Метод

pushes an item back on the stack
public static free ( List obj ) : void
obj List Object.
Результат void

obtain() публичный статический Метод

pops an item off the stack if available creating a new item as necessary
public static obtain ( ) : List
Результат List

trimCache() публичный статический Метод

trims the cache down to cacheCount items
public static trimCache ( int cacheCount ) : void
cacheCount int Cache count.
Результат void

warmCache() публичный статический Метод

warms up the cache filling it with a max of cacheCount objects
public static warmCache ( int cacheCount ) : void
cacheCount int new cache count
Результат void