Interface ISimpleSlotVisitor<T,​V>

  • Type Parameters:
    T - The SSSOM object whose slots this visitor will visit.
    V - The type of objects the visitor returns upon visiting a slot.
    All Known Implementing Classes:
    MappingEditor

    public interface ISimpleSlotVisitor<T,​V>
    A visitor interface to visit the different metadata slot of a SSSOM Java object. This is similar to the ISlotVisitor interface but with a single method that does not distinguish between slot types, but has the benefit (since it defines only one method) that it can be implemented as a lambda.
    • Method Detail

      • visit

        V visit​(Slot<T> slot,
                T object,
                Object value)
        Visits a SSSOM slot.
        Parameters:
        slot - The slot that is being visited.
        object - The object to which the slot is attached.
        value - The value of the slot.
        Returns:
        Whatever value the visitor wishes to return once the slot has been visited.