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

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

The newest version!

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

package io.permazen.encoding;

import java.util.DoubleSummaryStatistics;

/**
 * Non-null {@link DoubleSummaryStatistics} 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 DoubleSummaryStatisticsEncoding extends Concat4Encoding { private static final long serialVersionUID = -1637830934776137662L; public DoubleSummaryStatisticsEncoding() { super(DoubleSummaryStatistics.class, new DoubleEncoding(null), new LongEncoding(null), new DoubleEncoding(null), new DoubleEncoding(null), DoubleSummaryStatistics::getSum, DoubleSummaryStatistics::getCount, DoubleSummaryStatistics::getMin, DoubleSummaryStatistics::getMax, tuple -> new DoubleSummaryStatistics(tuple.getValue2(), tuple.getValue3(), tuple.getValue4(), tuple.getValue1())); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy