I have a huge class with 500 members. Each member will have properties whether it can be Filled/Edited based on business logic .
public class Person{
public String firstName;
//500 more Fields below
}
And similarly other 500 fields .
Consumer of the class will need whether the firstName can be Filled/Edited .
Straight forward way is
Enum FieldProperty{
CanBeEdited,CanBeFilled
}
public class Person{
public String firstName;
List<FieldProperty> firstNameProperties = list(CanBeFilled)
//500 more Fields below
}
How to efficiently represent this ?