Scooter annotations

Report a typo

There is a Keyboard class:

Java
public class Keyboard {

    @Min(10)
    @Max(20)
    private int {1};

    @Size(min = 10, max = 20)
    private String {2};

    @NotNull
    private String {3};

    @Email
    private String {4};

    // getters and setters
}
Kotlin
class Keyboard(

    @Min(10)
    @Max(20)
    var {1}: Int,

    @Size(min = 10, max = 20)
    var  {2}: String,

    @NotNull
    var {3}: String?,

    @Email
    var {4}: String

)

Match the missed Keyboard fields and the corresponding constraints if:

  • seriesTitle must be not null
  • manufacturerEmail should be valid
  • numberOfNumericButtons can be between 10 and 20
  • seriesNumber can contain from 10 to 20 symbols
Match the items from left and right columns
1
2
3
4
manufacturerEmail
seriesNumber
numberOfNumericButtons
seriesTitle
___

Create a free account to access the full topic