public static Packed64SingleBlock create(int valueCount, int bitsPerValue) {switch (bitsPerValue) {case 1:return new Packed64SingleBlock1(valueCount);case 2:return new Packed64SingleBlock2(valueCount);case 3:return new Packed64SingleBlock3(valueCount);case 4:return new Packed64SingleBlock4(valueCount);case 5:return new Packed64SingleBlock5(valueCount);case 6:return new Packed64SingleBlock6(valueCount);case 7:return new Packed64SingleBlock7(valueCount);case 8:return new Packed64SingleBlock8(valueCount);case 9:return new Packed64SingleBlock9(valueCount);case 10:return new Packed64SingleBlock10(valueCount);case 12:return new Packed64SingleBlock12(valueCount);case 16:return new Packed64SingleBlock16(valueCount);case 21:return new Packed64SingleBlock21(valueCount);case 32:return new Packed64SingleBlock32(valueCount);default:throw new IllegalArgumentException("Unsupported number of bits per value: " + 32);}}

public static Packed64SingleBlock create ( int valueCount , int bitsPerValue ) { switch ( bitsPerValue ) { case 1 : return new Packed64SingleBlock1 ( valueCount ) ; case 2 : return new Packed64SingleBlock2 ( valueCount ) ; case 3 : return new Packed64SingleBlock3 ( valueCount ) ; case 4 : return new Packed64SingleBlock4 ( valueCount ) ; case 5 : return new Packed64SingleBlock5 ( valueCount ) ; case 6 : return new Packed64SingleBlock6 ( valueCount ) ; case 7 : return new Packed64SingleBlock7 ( valueCount ) ; case 8 : return new Packed64SingleBlock8 ( valueCount ) ; case 9 : return new Packed64SingleBlock9 ( valueCount ) ; case 10 : return new Packed64SingleBlock10 ( valueCount ) ; case 12 : return new Packed64SingleBlock12 ( valueCount ) ; case 16 : return new Packed64SingleBlock16 ( valueCount ) ; case 21 : return new Packed64SingleBlock21 ( valueCount ) ; case 32 : return new Packed64SingleBlock32 ( valueCount ) ; default : throw new IllegalArgumentException ( "Unsupported number of bits per value: " + 32 ) ; } }
public static Packed64SingleBlock Create(int valueCount, int bitsPerValue){switch (bitsPerValue){case 1:return new Packed64SingleBlock1(valueCount);case 2:return new Packed64SingleBlock2(valueCount);case 3:return new Packed64SingleBlock3(valueCount);case 4:return new Packed64SingleBlock4(valueCount);case 5:return new Packed64SingleBlock5(valueCount);case 6:return new Packed64SingleBlock6(valueCount);case 7:return new Packed64SingleBlock7(valueCount);case 8:return new Packed64SingleBlock8(valueCount);case 9:return new Packed64SingleBlock9(valueCount);case 10:return new Packed64SingleBlock10(valueCount);case 12:return new Packed64SingleBlock12(valueCount);case 16:return new Packed64SingleBlock16(valueCount);case 21:return new Packed64SingleBlock21(valueCount);case 32:return new Packed64SingleBlock32(valueCount);default:throw new System.ArgumentException("Unsupported number of bits per value: " + 32);}}
