Code example for LinkedList

Methods: size, toArray

0
 
	synchronized public static LogItem[] getlogbuffer() { 
 
		// The stoned way of java to return an array from a vector 
		// brought to you by eclipse auto complete 
		return (LogItem[]) logbuffer.toArray(new LogItem[logbuffer.size()]);
 
	} 
	public static void logBuilderConfig(String[] bconfig) {
		mBconfig = bconfig;
	} 
	public static void triggerLogBuilderConfig() { 
		if(mBconfig==null) {
			logMessage(0, "", "No active interface"); 
		} else { 
			for (String item : mBconfig) {
				logMessage(0, "", item);
			}	 
		} 
 
	}