test.java.pro.verron.officestamper.test.SubContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of engine Show documentation
Show all versions of engine Show documentation
Office-stamper is a Java template engine for docx documents, forked from org.wickedsource.docx-stamper
package pro.verron.officestamper.test;
import java.util.List;
import java.util.Objects;
/**
* SubContext class.
*
* @author Joseph Verron
* @version ${version}
* @since 1.6.6
*/
public final class SubContext {
private String value;
private List li;
/**
* Constructor for SubContext.
*/
public SubContext() {
}
/**
* Constructor for SubContext.
*
* @param value a {@link java.lang.String} object
* @param li a {@link java.util.List} object
*/
public SubContext(
String value,
List li
) {
this.value = value;
this.li = li;
}
/**
* Getter for the field value
.
*
* @return a {@link java.lang.String} object
*/
public String getValue() {
return value;
}
/**
* Setter for the field value
.
*
* @param value a {@link java.lang.String} object
*/
public void setValue(String value) {
this.value = value;
}
/**
* Getter for the field li
.
*
* @return a {@link java.util.List} object
*/
public List getLi() {
return li;
}
/**
* Setter for the field li
.
*
* @param li a {@link java.util.List} object
*/
public void setLi(List li) {
this.li = li;
}
/** {@inheritDoc} */
@Override
public boolean equals(Object obj) {
if (obj == this) return true;
if (obj == null || obj.getClass() != this.getClass()) return false;
var that = (SubContext) obj;
return Objects.equals(this.value, that.value) &&
Objects.equals(this.li, that.li);
}
/** {@inheritDoc} */
@Override
public int hashCode() {
return Objects.hash(value, li);
}
/** {@inheritDoc} */
@Override
public String toString() {
return "SubContext[" +
"value=" + value + ", " +
"li=" + li + ']';
}
}