You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Log.java 863B

123456789101112131415161718192021222324252627282930313233
  1. /* *******************************************************************
  2. * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v 2.0
  6. * which accompanies this distribution and is available at
  7. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  8. *
  9. * Contributors:
  10. * PARC initial implementation
  11. * ******************************************************************/
  12. package support;
  13. import java.util.List;
  14. import java.util.ArrayList;
  15. public class Log {
  16. static List data = new ArrayList();
  17. public static void write(String s) {
  18. data.add(s);
  19. }
  20. public static List getData() {
  21. return data;
  22. }
  23. public static void clear() {
  24. data.clear();
  25. }
  26. }