package name.abuchen.portfolio.model;

import java.time.LocalDate;

public class LatestSecurityPrice extends SecurityPrice
{
    private long high;
    private long low;
    private long volume;

    private long previousClose;

    public LatestSecurityPrice()
    {
    }

    public LatestSecurityPrice(LocalDate date, long price)
    {
        super(date, price);
    }

    public LatestSecurityPrice(LocalDate date, long price, long high, long low, long volume)
    {
        super(date, price);

        this.high = high;
        this.low = low;
        this.volume = volume;
    }

    public long getHigh()
    {
        return high;
    }

    public void setHigh(long high)
    {
        this.high = high;
    }

    public long getLow()
    {
        return low;
    }

    public void setLow(long low)
    {
        this.low = low;
    }

    public long getVolume()
    {
        return volume;
    }

    public void setVolume(long volume)
    {
        this.volume = volume;
    }

    @Deprecated
    public long getPreviousClose()
    {
        return previousClose;
    }

    public void setPreviousClose(long previousClose)
    {
        this.previousClose = previousClose;
    }

    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = super.hashCode();
        result = prime * result + (int) (high ^ (high >>> 32));
        result = prime * result + (int) (low ^ (low >>> 32));
        result = prime * result + (int) (previousClose ^ (previousClose >>> 32));
        result = prime * result + (int) (volume ^ (volume >>> 32));
        return result;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj)
            return true;
        if (!super.equals(obj))
            return false;
        if (getClass() != obj.getClass())
            return false;
        LatestSecurityPrice other = (LatestSecurityPrice) obj;
        if (high != other.high)
            return false;
        if (low != other.low)
            return false;
        if (previousClose != other.previousClose)
            return false;
        if (volume != other.volume)
            return false;
        return true;
    }
}

@@ -61,16 +61,61 @@
 lDate;%0A%0A
+import name.abuchen.portfolio.money.Values;%0A%0A
 public c
@@ -2236,11 +2236,229 @@
 e;%0A    %7D
+%0A%0A    @Override%0A    @SuppressWarnings(%22nls%22)%0A    public String toString()%0A    %7B%0A        return String.format(%22%25tF: %25,10.4f high: %25d low: %25d volume: %2510d%22, date, value / Values.Quote.divider(), high, low, volume);%0A    %7D
 %0A%7D%0A

Make toString of LatestSecurityPrice more gabby