001/* 002 * $Id: StrategyEnumeration.java 5686 2017-01-03 08:42:06Z kredel $ 003 */ 004 005package edu.jas.util; 006 007 008/** 009 * StrategyEnumeration. This class names possible / implemented strategies for 010 * thread pools. 011 * @author Heinz Kredel 012 */ 013 014public 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 } 035 return "LIFO strategy"; 036 } 037 038}