Skip to content

Instantly share code, notes, and snippets.

Avatar

Oscar Luis Vera Pérez oscarlvp

  • France
View GitHub Profile
@oscarlvp
oscarlvp / VList.java
Created Dec 21, 2018
Introductory example of a pseudo-tested method
View VList.java
class VList {
private List elements;
private int version;
public void add(Object item) {
elements.add(item);
incrementVersion();
}
private void incrementVersion() { // This method is pseudo-tested
version++;
You can’t perform that action at this time.