| Home >> All >> com >> obs >> common >> accounting >> [ objects Javadoc ] |
Source code: com/obs/common/accounting/objects/FlowType.java
1 /* 2 * Created on Jul 16, 2003 3 */ 4 package com.obs.common.accounting.objects; 5 6 /** 7 * @author David Durst 8 */ 9 public class FlowType { 10 11 public static final Boolean IN = Boolean.TRUE, 12 OUT = Boolean.FALSE; 13 private Boolean type; 14 15 public FlowType() { 16 this(Boolean.TRUE); 17 } 18 19 public FlowType(boolean bool){ 20 type = new Boolean(bool); 21 } 22 public FlowType(Boolean bool){ 23 type = bool; 24 } 25 26 public void setType(Boolean type){ 27 this.type = type; 28 } 29 public Boolean getType(){ 30 return type; 31 } 32 33 public String getTypeName(){ 34 if(type.booleanValue()) 35 return "IN"; 36 return "OUT"; 37 } 38 39 40 }