Lookup

public class Lookup implements Serializable

Represents a single lookup. Lookup is a method of retrieving an object from a data provider. It is a part of a task model.

Constructors

Lookup

public Lookup()

Constructor.

Lookup

public Lookup(LookupDto dto)

Constructor.

Parameters:
  • dto – Lookup data transfer object

Lookup

public Lookup(String field, String value)

Constructor.

Parameters:
  • field – the field name
  • value – the field value

Methods

equals

public boolean equals(Object obj)

getField

public String getField()

getValue

public String getValue()

hashCode

public int hashCode()

setField

public void setField(String field)

setValue

public void setValue(String value)

toDto

public LookupDto toDto()

toLookups

public static List<Lookup> toLookups(List<LookupDto> lookupDtos)