Class NDefContactCreator

java.lang.Object
com.rvi.application.creator.NDefContactCreator

public final class NDefContactCreator extends Object
  • Constructor Details

    • NDefContactCreator

      public NDefContactCreator()
  • Method Details

    • firstName

      public NDefContactCreator firstName(String firstName)
      Sets the optional first name; at least one name is required at build time.
    • lastName

      public NDefContactCreator lastName(String lastName)
      Sets the optional last name; at least one name is required at build time.
    • email

      public NDefContactCreator email(String email)
      Sets an optional contact email; null becomes empty.
    • phone

      public NDefContactCreator phone(String phone)
      Sets an optional phone number; null becomes empty.
    • website

      public NDefContactCreator website(String website)
      Sets an optional HTTP or HTTPS contact website; null becomes empty.
    • build

      public NDefContact build()
      Validates collected values and returns a new immutable value. Does not access hardware.