1 23 package com.sun.enterprise.diagnostics; 24 25 29 public class TargetType { 30 31 public static TargetType DAS = new TargetType("server"); 32 public static TargetType INSTANCE = new TargetType("instance"); 33 private String type; 34 35 36 public TargetType(String type) { 37 this.type = type; 38 } 39 40 public String getType() { 41 return type; 42 } 43 44 public boolean equals(TargetType targetType) { 45 if(type != null) { 46 return type.equals(targetType.getType()); 47 } 48 return false; 49 } 50 51 } 52 | Popular Tags |