test_class.file: imcache-core/src/test/java/com/cetsoft/imcache/cache/SimpleItemTest.java
test_class.identifier: SimpleItemTest
test_case.body: @Test
    public void simpleItem() {
      SimpleItem<Integer> item = new SimpleItem<Integer>(10);
      assertEquals(10, item.getValue().intValue());
      assertEquals(0, item.getVersion());
  
      SimpleItem<Integer> item2 = new SimpleItem<>(2, 10);
      assertEquals(2, item2.getVersion());
      assertEquals(10, item2.getValue().intValue());
  
      assertEquals(item2.getVersion() + 1, item2.update(3).getVersion());
      assertFalse(item2.equals(item2.update(4)));
  
      item.hashCode();
      item.toString();
    }
test_case.class_method_signature: SimpleItemTest.simpleItem()
test_case.full_signature: @Test public void simpleItem()
test_case.identifier: simpleItem
test_case.invocations: assertEquals intValue getValue assertEquals getVersion assertEquals getVersion assertEquals intValue getValue assertEquals getVersion getVersion update assertFalse equals update hashCode toString
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void simpleItem()
focal_class.declarator: version
focal_class.modifier: private final
focal_class.original_string: private final int version;
focal_class.type: int
focal_class.var_name: version
focal_class.declarator: value
focal_class.modifier: private final
focal_class.original_string: private final V value;
focal_class.type: V
focal_class.var_name: value
focal_class.file: imcache-core/src/main/java/com/cetsoft/imcache/cache/SimpleItem.java
focal_class.identifier: SimpleItem
focal_class.interfaces: implements VersionedItem<V>
focal_class.class_method_signature: SimpleItem.SimpleItem(final V value)
focal_class.full_signature: public  SimpleItem(final V value)
focal_class.identifier: SimpleItem
focal_class.modifiers: public
focal_class.parameters: (final V value)
focal_class.signature:  SimpleItem(final V value)
focal_class.class_method_signature: SimpleItem.SimpleItem(final int version, final V value)
focal_class.full_signature: public  SimpleItem(final int version, final V value)
focal_class.identifier: SimpleItem
focal_class.modifiers: public
focal_class.parameters: (final int version, final V value)
focal_class.signature:  SimpleItem(final int version, final V value)
focal_class.class_method_signature: SimpleItem.getValue()
focal_class.full_signature: public V getValue()
focal_class.identifier: getValue
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: V
focal_class.signature: V getValue()
focal_class.class_method_signature: SimpleItem.update(V newValue)
focal_class.full_signature: @Override public VersionedItem<V> update(V newValue)
focal_class.identifier: update
focal_class.modifiers: @Override public
focal_class.parameters: (V newValue)
focal_class.return: VersionedItem<V>
focal_class.signature: VersionedItem<V> update(V newValue)
focal_class.class_method_signature: SimpleItem.getVersion()
focal_class.full_signature: public int getVersion()
focal_class.identifier: getVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getVersion()
focal_class.class_method_signature: SimpleItem.equals(Object o)
focal_class.full_signature: @Override public boolean equals(Object o)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object o)
focal_class.return: boolean
focal_class.signature: boolean equals(Object o)
focal_class.class_method_signature: SimpleItem.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: SimpleItem.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public SimpleItem(final V value) {
      this.value = value;
      this.version = 0;
    }
focal_method.class_method_signature: SimpleItem.SimpleItem(final V value)
focal_method.full_signature: public  SimpleItem(final V value)
focal_method.identifier: SimpleItem
focal_method.modifiers: public
focal_method.parameters: (final V value)
focal_method.signature:  SimpleItem(final V value)