MCPcopy Index your code
hub / github.com/bcgit/bc-java / KMIPLong

Class KMIPLong

kmip/src/main/java/org/bouncycastle/kmip/wire/KMIPLong.java:3–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package org.bouncycastle.kmip.wire;
2
3public class KMIPLong
4 implements KMIPItem
5{
6 private final int tag;
7 private final long value;
8
9 public KMIPLong(int tag, long value)
10 {
11 this.tag = tag;
12 this.value = value;
13 }
14
15 public int getTag()
16 {
17 return tag;
18 }
19
20 public byte getType()
21 {
22 return KMIPType.LONG_INTEGER;
23 }
24
25 public long getLength()
26 {
27 return 8;
28 }
29
30 public Object getValue()
31 {
32 return new Long(value);
33 }
34
35 public KMIPItem toKMIPItem()
36 {
37 return this;
38 }
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected