Debian Codegraph @

jetty-ee9/jetty-ee9-demos/jetty-ee9-demo-jsp-webapp/src/main/java/org/example/Counter.java

raw
1 //
2 // ========================================================================
3 // Copyright (c) 1995 Mort Bay Consulting Pty Ltd and others.
4 //
5 // This program and the accompanying materials are made available under the
6 // terms of the Eclipse Public License v. 2.0 which is available at
7 // https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
8 // which is available at https://www.apache.org/licenses/LICENSE-2.0.
9 //
10 // SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
11 // ========================================================================
12 //
13
14 package org.example;
15
16 @SuppressWarnings("serial")
17 public class Counter implements java.io.Serializable
18 {
19 int counter = 0;
20 String last;
21
22 public int getCount()
23 {
24 counter++;
25 return counter;
26 }
27
28 public void setLast(String uri)
29 {
30 last = uri;
31 }
32
33 public String getLast()
34 {
35 return last;
36 }
37 }
38