Changeset 5761 for branches/OKBJavaConnector/src/main/java/com/heuristiclab/okb/wsclient/Utilities.java
- Timestamp:
- 03/19/11 09:37:18 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKBJavaConnector/src/main/java/com/heuristiclab/okb/wsclient/Utilities.java
r5673 r5761 1 1 package com.heuristiclab.okb.wsclient; 2 2 3 import at.hl.wsclient.okb.NamedOKBItem;4 import at.hl.wsclient.okb.Problem;3 //import at.hl.wsclient.okb.NamedOKBItem; 4 //import at.hl.wsclient.okb.Problem; 5 5 6 6 import com.google.common.base.Predicate; … … 8 8 class Utilities { 9 9 10 private static class NameFilter implements Predicate<NamedOKBItem> 11 { 12 private final String name; 13 14 public NameFilter(String name) 15 { 16 this.name = name; 17 } 18 19 @Override 20 public boolean apply(NamedOKBItem arg0) { 21 return arg0.getName().getValue().equals(name); 22 } 23 } 24 25 26 private static class ProblemFilter implements Predicate<Problem> 27 { 28 private final String problemName; 29 private final String problemClass; 30 31 public ProblemFilter(String problemName, String problemClass) 32 { 33 this.problemClass = problemClass; 34 this.problemName = problemName; 35 } 10 // private static class NameFilter implements Predicate<NamedOKBItem> 11 // { 12 // private final String name; 13 // 14 // public NameFilter(String name) 15 // { 16 // this.name = name; 17 // } 18 // 19 // @Override 20 // public boolean apply(NamedOKBItem arg0) { 21 // return arg0.getName().getValue().equals(name); 22 // } 23 // } 24 // 25 // 26 // private static class ProblemFilter implements Predicate<Problem> 27 // { 28 // private final String problemName; 29 // private final String problemClass; 30 // 31 // public ProblemFilter(String problemName, String problemClass) 32 // { 33 // this.problemClass = problemClass; 34 // this.problemName = problemName; 35 // } 36 // 37 // @Override 38 // public boolean apply(Problem input) { 39 // // TODO Auto-generated method stub 40 // return false; 41 // } 42 // } 43 // 44 // 45 // public static Predicate<NamedOKBItem> createNameFilter(String name) 46 // { 47 // return new NameFilter(name); 48 // } 49 // 50 // private Utilities() 51 // { 52 // 53 // } 36 54 37 @Override38 public boolean apply(Problem input) {39 // TODO Auto-generated method stub40 return false;41 }42 }43 44 45 public static Predicate<NamedOKBItem> createNameFilter(String name)46 {47 return new NameFilter(name);48 }49 50 private Utilities()51 {52 53 }54 55 56 55 }
Note: See TracChangeset
for help on using the changeset viewer.