Searched refs:list (Results 1 - 25 of 280) sorted by relevance

1234567891011>>

/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/
H A DLocaleEncodingMappingListDescriptor.java48 private Set<LocaleEncodingMappingDescriptor> list = null; field in class:LocaleEncodingMappingListDescriptor
61 if (other.list != null) {
62 list = new HashSet();
63 for (Iterator i = other.list.iterator(); i.hasNext();) {
65 list.add(new LocaleEncodingMappingDescriptor(lemd));
68 list = null;
73 if(list == null) {
74 list = new HashSet<LocaleEncodingMappingDescriptor>();
76 return list;
95 toStringBuffer.append("\nProp : ").append(list);
[all...]
/glassfish-3.1.2/transaction/jts/src/main/java/com/sun/jts/pi/
H A DArrayListStack.java55 * operations that allow a list to be treated as a stack. The usual
66 private ArrayList list; field in class:ArrayListStack
71 list = new ArrayList(size);
94 list.add(curIndex, obj);
107 return list.remove(curIndex);
130 top = list.get(curIndex - 1);
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/deploy/
H A DTest.java65 String list[] = null;
75 list = collection.findMethods();
76 for (int i = 0; i < list.length; i++)
77 System.out.println(" " + list[i]);
87 list = collection.findMethods();
88 for (int i = 0; i < list.length; i++)
89 System.out.println(" " + list[i]);
/glassfish-3.1.2/admingui/devtests/src/test/java/org/glassfish/admingui/devtests/
H A DJsonUtilTest.java64 List list = (List)JSONUtil.jsonToJava("[null]");
65 assertNotNull(list);
66 assertEquals(1, list.size());
67 assertNull(list.get(0));
69 list = (List)JSONUtil.jsonToJava("[true,false,null,{'a':'b'},['1','2','3']]");
70 assertNotNull(list);
71 assertEquals(5, list.size());
72 assertTrue((Boolean)list.get(0));
73 assertFalse((Boolean)list.get(1));
74 assertNull(list
[all...]
/glassfish-3.1.2/common/amx-core/src/main/java/org/glassfish/admin/amx/util/
H A DListUtil.java58 Add all items in an array to a list.
61 final List<T> list,
66 list.add(array[i]);
103 public static String[] toStringArray(final List<?> list) argument
105 final String[] names = new String[list.size()];
108 for (final Object o : list)
122 final List<T> list = new ArrayList<T>();
124 list.addAll(c);
126 return (list);
144 final List<T> list
60 addArray( final List<T> list, final T[] array) argument
255 reverse(final List<T> list) argument
[all...]
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/runtime/
H A DRuntimeDescriptor.java127 List list = getIndexedProperty(name);
128 list.set(index, value);
129 setValue(name, list);
133 List list = getIndexedProperty(name);
134 return list.get(index);
138 List list = getIndexedProperty(name);
139 list.add(value);
140 setValue(name, list);
141 return list.indexOf(value);
145 List list
[all...]
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/io/
H A DFileListerRelative.java73 String[] list = flr.getFiles();
75 for(int i = 0; i < list.length; i++)
76 System.out.println(list[i]);
/glassfish-3.1.2/connectors/connectors-runtime/src/main/java/com/sun/enterprise/resource/pool/waitqueue/
H A DDefaultPoolWaitQueue.java57 private LinkedList list; field in class:DefaultPoolWaitQueue
61 list = new LinkedList();
70 return list.size();
76 list.addLast(waitMonitor);
81 return list.remove(o);
86 return list.removeFirst();
91 return list.removeFirst();
96 if (list.size() > 0) {
97 result = list.get(0);
103 return list;
[all...]
/glassfish-3.1.2/installer/src/main/java/org/glassfish/installer/util/
H A DExceptionUtil.java59 ArrayList list = new ArrayList();
65 list.add(t);
79 ? new Throwable[list.size()] : new Exception[list.size()];
81 list.toArray(results);
/glassfish-3.1.2/jdbc/jdbc-ra/jdbc-core/src/main/java/com/sun/gjc/util/
H A DSQLTraceCache.java62 private final List<SQLTrace> list; field in class:SQLTraceCache
79 list = new ArrayList<SQLTrace>();
84 return list;
142 * in the list, the number of times it is executed is incremented by one
144 * If the query is a new one, it is added to the list.
150 synchronized (list) {
152 int index = list.indexOf(cacheObj);
157 SQLTrace cache = (SQLTrace) list.get(index);
164 list.add(cacheObj);
171 * Entries are removed from the list afte
[all...]
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/adapter/
H A DReloader.java52 private List<ContainerListener> list = new ArrayList<ContainerListener>(); field in class:Reloader
56 list.add(containerListener);
61 for(ContainerListener cl : list) {
/glassfish-3.1.2/web/web-glue/src/main/java/com/sun/enterprise/web/
H A DWebContainerStartStopOperation.java64 public void doPostStop(ArrayList list); argument
/glassfish-3.1.2/admin/cli/src/main/java/com/sun/enterprise/admin/cli/
H A DMonitorCommand.java121 List<String> list = new ArrayList<String>(5);
122 list.add("monitor");
125 list.add("--type");
126 list.add(type);
129 list.add("--filter");
130 list.add(filter);
132 return list.toArray(new String[list.size()]);
/glassfish-3.1.2/persistence/cmp/utility/src/main/java/com/sun/jdo/spi/persistence/utility/generator/io/
H A DFormattedWriter.java137 void writeList (final int indents, final List list, argument
140 if ((list != null) && (list.size() > 0))
142 Iterator iterator = list.iterator();
157 void writeList (final int indents, final List list) argument
159 writeList(indents, list, false);
162 void writeList (final List list) argument
164 writeList(0, list);
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/universal/
H A DSystemProps.java67 List<Map.Entry> list = new ArrayList<Map.Entry>(set);
69 Collections.sort(list, new Comparator<Map.Entry>()
77 return list;
85 List<Map.Entry> list = get();
88 /* Go through the list twice.
93 for(Map.Entry entry : list)
103 for(Map.Entry entry : list)
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/base/stats/
H A DMethodMonitor.java88 ArrayList list = (ArrayList) execThreadLocal.get();
89 if (list == null) {
90 list = new ArrayList(5);
91 execThreadLocal.set(list);
93 list.add(System.currentTimeMillis());
102 ArrayList list = (ArrayList) execThreadLocal.get();
103 if ( (list != null) && (list.size() > 0) ) {
104 int index = list.size();
105 Long startTime = (Long) list
[all...]
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/monitoring/stats/
H A DEjbMethodStatsProvider.java146 List list = (ArrayList) execThreadLocal.get();
147 if (list == null) {
148 list = new ArrayList(5);
149 execThreadLocal.set(list);
151 list.add(System.currentTimeMillis());
156 List list = (ArrayList) execThreadLocal.get();
157 if ( (list != null) && (list.size() > 0) ) {
158 int index = list.size();
159 Long startTime = (Long) list
[all...]
/glassfish-3.1.2/ejb/ejb-container/src/main/java/com/sun/ejb/containers/util/pool/
H A DNonBlockingPool.java60 * pool. The implementation uses a linked list to maintain a list of
132 list = new ArrayList();
194 synchronized (list) {
195 int size = list.size();
198 return list.remove(size-1);
203 obj = list.remove(size-1);
205 return list.remove(size-1);
225 synchronized (list) {
226 while (list
[all...]
H A DAbstractPool.java62 * The implementation uses a linked list to maintain a list of (available)
81 protected ArrayList list; field in class:AbstractPool
126 list = new ArrayList();
139 list.add(factory.create(null));
213 synchronized (list) {
215 if ((size = list.size()) > 0) {
217 return list.remove(size-1);
230 list.wait(maxWaitTimeInMillis);
236 if ((size = list
[all...]
/glassfish-3.1.2/common/mbeanserver/src/main/java/org/glassfish/admin/mbeanserver/ssl/
H A DSecureRMIClientSocketFactory.java65 // The list of cipher suite
67 //the list of protocols
184 * Return the list of allowed protocol.
192 ArrayList<String> list = null;
201 if (list == null) {
202 list = new ArrayList<String>();
204 list.add(protocol);
210 if (list != null) {
211 protocols = list.toArray(new String[list
[all...]
H A DSecureRMIServerSocketFactory.java72 // The list of cipher suite
74 //the list of protocols
169 * Return the list of allowed protocol.
177 ArrayList<String> list = null;
186 if (list == null) {
187 list = new ArrayList<String>();
189 list.add(protocol);
195 if (list != null) {
196 protocols = list.toArray(new String[list
[all...]
/glassfish-3.1.2/jdbc/jdbc-ra/jdbc-core/src/main/java/com/sun/gjc/spi/base/datastructure/
H A DLRUCacheImpl.java63 private Map<CacheObjectKey, CacheEntry> list; field in class:LRUCacheImpl
79 list = new LinkedHashMap<CacheObjectKey, CacheEntry>();
89 * put in the result object and back into the list.
98 CacheEntry entry = list.get(key);
125 if(force || !list.containsKey(key)){
128 if(list.size() >= maxSize){
132 list.put(key, entry);
143 list.clear();
147 while(list.size()!=0){
153 Iterator keyIterator = list
[all...]
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/appserv/util/cache/
H A DMultiLruCache.java52 * having its own LRU list.
57 * LruCacheItem[2] with LRU list (lru[0] is head and lru[1] the tail
103 * get the LRU list associated with the index
105 * @return the LRU list to be used
133 LruCacheItem[] list = lists[segment];
136 l = list[LRU_TAIL];
138 list[LRU_TAIL] = l.lPrev;
139 list[LRU_TAIL].lNext = null;
164 LruCacheItem[] list = lists[segment];
167 synchronized (list) {
[all...]
/glassfish-3.1.2/common/common-util/src/main/java/com/sun/enterprise/util/
H A DExceptionUtil.java68 final ArrayList<Throwable> list = new ArrayList<Throwable>();
75 list.add(t);
90 final Throwable[] results = haveNonException ? new Throwable[list.size()] : new Exception[list.size()];
92 list.toArray(results);
/glassfish-3.1.2/persistence/cmp/utility/src/main/java/com/sun/jdo/spi/persistence/utility/
H A DStringHelper.java68 * assumes there is no instance of the separator in the strings of list.
69 * @param list The list of objects to be expanded.
70 * @param beginIndex The index of the first element in the list to be used.
71 * @param endIndex The index of the last element in the list to be used.
73 * @return a string representing the expanded list.
75 public static String arrayToSeparatedList (List list, int beginIndex, argument
80 if (list != null)
84 if ((count > beginIndex) && (list.size() >= count))
85 result.append(list
102 arrayToSeparatedList(List list, int beginIndex, int endIndex) argument
115 arrayToSeparatedList(List list, String separator) argument
127 arrayToSeparatedList(List list) argument
138 separatedListToArray(String list, String separator) argument
159 separatedListToArray(String list) argument
[all...]

Completed in 3109 milliseconds

1234567891011>>