View Javadoc
1   package edu.jiangxin.apktoolbox.file.checksum;
2   
3   public enum CalculateType {
4       Md5(1, "Md5"),
5       Sha1(2, "Sha1"),
6       Sha256(3, "Sha256"),
7       Sha384(4, "Sha384"),
8       Sha512(5, "Sha512"),
9       Crc32(6, "Crc32");
10  
11      private int id;
12      private String name;
13  
14      CalculateType(int id, String name) {
15          this.id = id;
16          this.name = name;
17      }
18  
19      public int getId() {
20          return id;
21      }
22  
23      public String getName() {
24          return name;
25      }
26  }