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

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

The newest version!

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

package io.permazen.encoding;

import java.util.IntSummaryStatistics;

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy