package com.hubspot.mesos.json;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class MesosFileObject {
  private final String gid;
  private final String mode;
  private final long mtime;
  private final int nlink;
  private final String path;
  private final int size;
  private final String uid;

  @JsonCreator
  public MesosFileObject(@JsonProperty("gid") String gid, @JsonProperty("mode") String mode,
                         @JsonProperty("motime") long mtime, @JsonProperty("nlink") int nlink,
                         @JsonProperty("path") String path, @JsonProperty("size") int size,
                         @JsonProperty("uid") String uid) {
    this.gid = gid;
    this.mode = mode;
    this.mtime = mtime;
    this.nlink = nlink;
    this.path = path;
    this.size = size;
    this.uid = uid;
  }

  public String getGid() {
    return gid;
  }

  public String getMode() {
    return mode;
  }

  public long getMtime() {
    return mtime;
  }

  public int getNlink() {
    return nlink;
  }

  public String getPath() {
    return path;
  }

  public int getSize() {
    return size;
  }

  public String getUid() {
    return uid;
  }
}

@@ -322,19 +322,20 @@
 e final 
-int
+long
  size;%0A 
@@ -647,19 +647,20 @@
 %22size%22) 
-int
+long
  size,%0A 
@@ -1129,27 +1129,28 @@
 %7D%0A%0A  public 
-int
+long
  getSize() %7B

switch file size to long