View Javadoc

1   /* Copyright (c) 2008 semgine GmbH
2    * Dieffenbachstr. 33c
3    * 10967 Berlin
4    * Germany
5    * http://www.semgine.com
6    */
7   package net.sf.eos.util.functions;
8   
9   import net.sf.eos.Function;
10  
11  public class Fahrenheit2Celsius implements Function<Float, Float> {
12      @SuppressWarnings("boxing")
13      public Float apply(final Float from) {
14          return (from  - 32) / 9 * 5;
15      }
16  }