Interface HasFields

All Known Implementing Classes:
Date, Fact, Gedcomx, Gender, NameForm, NamePart, Person, PlaceReference, Relationship, SourceDescription

public interface HasFields
Interface indicating that a class as a list of record Fields. The list of fields is either directly used as evidence for a value or entity, or is otherwise viewed as logically being strongly associated with that value or entity, such that it makes sense to group them within it.
Author:
Randy Wilson
  • Method Summary

    Modifier and Type
    Method
    Description
    default Stream<Field>
    Create a stream of fields being used as evidence.
    Get the fields being used as evidence.
    void
    setFields(List<Field> fields)
    Set the list of fields being used as evidence.
  • Method Details

    • fields

      default Stream<Field> fields()
      Create a stream of fields being used as evidence.
      Returns:
      a stream of fields being used as evidence.
    • getFields

      List<Field> getFields()
      Get the fields being used as evidence.
      Returns:
      The references to the record fields being used as evidence.
    • setFields

      void setFields(List<Field> fields)
      Set the list of fields being used as evidence.
      Parameters:
      fields - - List of fields