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

com.intuit.fuzzymatcher.domain.ElementClassification Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
package com.intuit.fuzzymatcher.domain;

import java.util.List;
import java.util.Objects;
import java.util.function.Function;
import java.util.stream.Stream;

/**
 * Defines how each element is classified using ElementType and variance.
 * 
    *
  • ElementType is an enum which gives a template on all the functions that should be applied during match
  • *
  • Variance is a user defined String, that allows multiple ElementType to be defined in a Document
  • *
*/ public class ElementClassification { private ElementType elementType; private String variance; public ElementClassification(ElementType elementType, String variance) { this.elementType = elementType; this.variance = variance; } public ElementType getElementType() { return elementType; } public String getVariance() { return variance; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ElementClassification that = (ElementClassification) o; return elementType == that.elementType && Objects.equals(variance, that.variance); } @Override public int hashCode() { return Objects.hash(elementType, variance); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy