class EdgeValueHelper {

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

    private  EdgeValueHelper();

}