You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DataConsolidateFunction.java 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * ====================================================================
  3. * Licensed to the Apache Software Foundation (ASF) under one or more
  4. * contributor license agreements. See the NOTICE file distributed with
  5. * this work for additional information regarding copyright ownership.
  6. * The ASF licenses this file to You under the Apache License, Version 2.0
  7. * (the "License"); you may not use this file except in compliance with
  8. * the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. * ====================================================================
  18. */
  19. package org.apache.poi.ss.usermodel;
  20. import org.apache.poi.util.Beta;
  21. /**
  22. * Enum mapping the values of STDataConsolidateFunction
  23. */
  24. @Beta
  25. public enum DataConsolidateFunction {
  26. AVERAGE(1,"Average"),
  27. COUNT(2, "Count"),
  28. COUNT_NUMS(3, "Count"),
  29. MAX(4, "Max"),
  30. MIN(5, "Min"),
  31. PRODUCT(6, "Product"),
  32. STD_DEV(7, "StdDev"),
  33. STD_DEVP(8, "StdDevp"),
  34. SUM(9, "Sum"),
  35. VAR(10, "Var"),
  36. VARP(11, "Varp");
  37. private final int value;
  38. private final String name;
  39. DataConsolidateFunction(int value, String name) {
  40. this.value = value;
  41. this.name = name;
  42. }
  43. public String getName() {
  44. return this.name;
  45. }
  46. public int getValue() {
  47. return this.value;
  48. }
  49. }