1 package org.lcsim.lcio; 2 3 /** Simple helper class to encode/decode the LCIO version number. 4 * @author gaede 5 * @version $Id: SIOVersion.java,v 1.1 2009/02/23 19:36:39 jeremy Exp $ 6 */ 7 public class SIOVersion 8 { 9 10 /** Returns the version encoded in one word. 11 */ 12 public static int encode(int major, int minor) 13 { 14 15 return (major << 16) | ( 0xffff & minor ) ; 16 } 17 }