/**
* @returns [1]: Location, [2]: Customer, [3]: Incident
*/

[] getDetails(int id) {...

This sort of passing back values from a method is error prone; it is recommended to declare a small class that holds the objects together.

Details getDetails(int id) {...}

private class Details {
      public Location location;
      public Customer customer;
      public Incident incident;
}



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here