mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
OP-1832 Add getDefaultInstance method to Java UAVObject template
This commit is contained in:
parent
73d3d3b869
commit
2a08d6aa12
@ -115,6 +115,17 @@ $(INITFIELDS)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a new instance of this UAVDataObject with default field
|
||||||
|
* values. This is intended to be used by 'reset to default' functionality.
|
||||||
|
*
|
||||||
|
* @return new instance of this class with default values.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public UAVDataObject getDefaultInstance(){
|
||||||
|
return new $(NAME)();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Static function to retrieve an instance of the object.
|
* Static function to retrieve an instance of the object.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user