Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/19/11 09:37:18 (13 years ago)
Author:
mholper
Message:

first Unit-Test build against new AdministrationService #1441

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OKBJavaConnector/src/main/java/com/heuristiclab/okb/wsclient/Utilities.java

    r5673 r5761  
    11package com.heuristiclab.okb.wsclient;
    22
    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;
    55
    66import com.google.common.base.Predicate;
     
    88class Utilities {
    99 
    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//  }
    3654
    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   }
    54  
    55  
    5655}
Note: See TracChangeset for help on using the changeset viewer.