The Number of Accessor Methods (NOAM) is the total number of accessor methods (getters and setters) of a class (or component).

Default ThresholdNA

Example:

NOAM is 2 for below code.

public class Employee

{

    private int number;

    public int getNumber()

    {

        return number;

    }

 

    public void setNumber(int newNumber)

    {

        number = newNumber;

    }

}