All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.permazen.encoding.LongSummaryStatisticsEncoding Maven / Gradle / Ivy

The newest version!

/*
 * Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
 */

package io.permazen.encoding;

import java.util.LongSummaryStatistics;

/**
 * Non-null {@link LongSummaryStatistics} type.
 *
 * 

* Null values are not supported by this class and there is no default value. * *

* Instances are ordered by sum, count, min, max. */ public class LongSummaryStatisticsEncoding extends Concat4Encoding { private static final long serialVersionUID = -1637830934776137662L; public LongSummaryStatisticsEncoding() { super(LongSummaryStatistics.class, new LongEncoding(null), new LongEncoding(null), new LongEncoding(null), new LongEncoding(null), LongSummaryStatistics::getSum, LongSummaryStatistics::getCount, LongSummaryStatistics::getMin, LongSummaryStatistics::getMax, tuple -> new LongSummaryStatistics(tuple.getValue2(), tuple.getValue3(), tuple.getValue4(), tuple.getValue1())); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy