class EdgeValueHelper {

    public static List<Long> decodeDurationHistogram(Value value) {
        try {
            return decodeDurationHistogram(EdgeData.EdgeValue.parseFrom(value.get()).getDurationList());
        } catch (InvalidProtocolBufferException e) {
            // Probably an old edge value
            return decodeDurationHistogram(getVarLongList(value.get()));
        }
    }

    private  EdgeValueHelper();

}