001 /*
002 * $Id: StrategyEnumeration.java 2771 2009-08-05 20:10:49Z kredel $
003 */
004
005 package edu.jas.util;
006
007
008 /**
009 * StrategyEnumeration. This class names possible / implemented strategies for
010 * thread pools.
011 * @author Heinz Kredel.
012 */
013
014 public final class StrategyEnumeration {
015
016
017 public static final StrategyEnumeration FIFO = new StrategyEnumeration();
018
019
020 public static final StrategyEnumeration LIFO = new StrategyEnumeration();
021
022
023 private StrategyEnumeration() {
024 }
025
026
027 /**
028 * toString.
029 */
030 @Override
031 public String toString() {
032 if (this == FIFO) {
033 return "FIFO strategy";
034 } else {
035 return "LIFO strategy";
036 }
037 }
038
039 }