f7
f7 is a spreadsheet formula execution library
git clone https://git.vogt.world/f7.git
Log | Files | README.md | LICENSE.md
← All files
name: src/main/java/io/protobase/f7/models/UnaryPercentOperationNode.java
-rw-r--r--
781
 1package io.protobase.f7.models;
 2
 3import com.google.common.base.MoreObjects;
 4
 5/**
 6 * Unary percent operation is essentially division by 100.
 7 */
 8public class UnaryPercentOperationNode extends BaseObject implements Node {
 9  private Node operand;
10
11  /**
12   * Create new node with an operand.
13   *
14   * @param operand value
15   */
16  public UnaryPercentOperationNode(Node operand) {
17    this.operand = operand;
18  }
19
20  /**
21   * Get the operand node.
22   *
23   * @return node.
24   */
25  public Node getOperand() {
26    return operand;
27  }
28
29  @Override
30  public String toString() {
31    return MoreObjects.toStringHelper(this)
32        .add("operand", operand)
33        .toString();
34  }
35
36  @Override
37  public Object[] significantAttributes() {
38    return new Object[]{
39        operand
40    };
41  }
42}