Added org.simantics.filesystem.services
[simantics/platform.git] / bundles / org.simantics.filesystem.services / src / org / simantics / filesystem / services / internal / sizetracker / SizeChangeEventImpl.java
1 package org.simantics.filesystem.services.internal.sizetracker;
2
3 import java.nio.file.Path;
4
5 import org.simantics.filesystem.services.sizetracker.SizeChangeEvent;
6
7 /**
8  * @author Tuukka Lehtonen
9  * @since 1.31.0
10  */
11 public class SizeChangeEventImpl implements SizeChangeEvent {
12
13         private final Path path;
14         private final long oldSize;
15         private final long newSize;
16
17         public SizeChangeEventImpl(Path path, long oldSize, long newSize) {
18                 this.path = path;
19                 this.oldSize = oldSize;
20                 this.newSize = newSize;
21         }
22
23         @Override
24         public Path path() {
25                 return path;
26         }
27
28         @Override
29         public long newSize() {
30                 return newSize;
31         }
32
33         @Override
34         public long oldSize() {
35                 return oldSize;
36         }
37
38 }