Interface Mappable

All Known Subinterfaces:
Model, Request, User
All Known Implementing Classes:
Coordinator, Project, Student, StudentChangeTitleRequest, StudentDeregistrationRequest, StudentRegistrationRequest, Supervisor, TransferStudentRequest

public interface Mappable
Interface for objects that can be mapped to/from a Map.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Converts the map to an object
    default Map<String,String>
    Converts the object to a map
  • Method Details

    • toMap

      default Map<String,String> toMap()
      Converts the object to a map
      Returns:
      the map
    • fromMap

      default void fromMap(Map<String,String> map)
      Converts the map to an object
      Parameters:
      map - the map