Adds a long to the constant pool of the class being build. Does nothing if the constant pool already contains a
similar item.

@param value the long value.
@return a new or already existing long item.
334823
private Item newLong(final long value) {
        Item result = get(key.set(LONG, value));
        if (result == null) {
            pool.putByte(LONG).putLong(value);
            result = new Item(poolIndex, key);
            put(result);
            poolIndex += 2;
        }
        return result;
    }
1360536
public final void putLong(Object parent, long offset, long value) {
		THE_UNSAFE.putLong(parent, offset, value);
	}
1127693
public DynamicByteBuffer addUnsignedInt( long value ) {

        if ( 4 + length < capacity ) {
            DynamicByteBufferHelper.unsignedIntTo( buffer, length, value );
        } else {
            buffer = DynamicByteBufferHelper.grow( buffer, buffer.length * 2 + 4 );
            capacity = buffer.length;

            DynamicByteBufferHelper.unsignedIntTo( buffer, length, value );
        }

        length += 4;
        return this;

    }
1210521
@Programmatic
    public ApplicationSettingJdo newLong(
            final String key,
            final String description,
            final Long value) {
        return newSetting(key, description, SettingType.LONG, value.toString());
    }
75768
public void updateLongLE(long value) {
        finished = false;
        switch (partialPos) {
            case 0:
                partialK1 = value;
                break;
            case 8:
                partialK2 = value;
                break;
            default:
                throw new IllegalStateException("Cannot mix long with other alignments than 8: " + partialPos);
        }

        partialPos += 8;
        if (partialPos == 16) {
            applyKs(partialK1, partialK2);
            partialPos = 0;
        }
        length += 8;
    }
1294998
public void add(long value) {
		int index = Arrays.binarySearch(bins, value);
		if (index < 0) {
			// inexact match, take the first bin higher than value
			index = -index - 1;
		}
		hits.incrementAndGet(index);
	}
356222
@NonNull
    public Parameters setLong(@NonNull String name, long value) {
        return setValue(name, value);
    }
645532
public static String writeLong(Long value) {
		if (value==null) return null;
		
		return Long.toString(value);			
	}
182477
public synchronized static <T> T put(Object id, T value)
    {
        SoftReference old = pool.put(id, new SoftReference(value));
        return old == null ? null : (T) old.get();
    }
1315278
public AnnotationValueBuilder<T> member(String name, long... longs) {
        if (longs != null) {
            values.put(name, longs);
        }
        return this;
    }
1308637
public Packer putVLong(long value) {
		ensureCapacity(bufPosition + 8 + 2);
		// org.apache.lucene.util.packed.AbstractBlockPackedWriter
		int i = 0;
		while (((value & ~0x7FL) != 0L) && ((i += 7) < 64)) {
			buf[bufPosition++] = ((byte) ((value & 0x7FL) | 0x80L));
			value >>>= 7;
		}
		buf[bufPosition++] = ((byte) value);
		return this;
	}
675058
public Datapoint addDoubleValue(long time, double value) {
        initialValues();
        checkType(TsdbConstants.TYPE_DOUBLE);

        values.add(Lists.<JsonNode> newArrayList(new LongNode(time), new DoubleNode(value)));
        return this;
    }
76367
protected Long addLongValue(Object name, long inc) {
    Long val = this.longCounters.get(name);
    Long retv = null;
    if (val == null) {
      retv = new Long(inc);
    } else {
      retv = new Long(val.longValue() + inc);
    }
    this.longCounters.put(name, retv);
    return retv;
  }
1865
public void setLong(Long value) {
		this.checkNull(value);
		list.add(value);
		type.add(Long.class);
	}
178589
void set(final long longVal) {
        this.type = ClassWriter.LONG;
        this.longVal = longVal;
        this.hashCode = 0x7FFFFFFF & (type + (int) longVal);
    }
94320
public void put(String key, Object value) {
		if (value.getClass().equals(String.class)) {
			putString(key, value.toString());
		} else if (value.getClass().equals(Integer.class)) {
			putInt(key, (Integer) value);
		} else if (value.getClass().equals(Float.class)) {
			putFloat(key, (Float) value);
		} else if (value.getClass().equals(Long.class)) {
			putLong(key, (Long) value);
		} else if (value.getClass().equals(Boolean.class)) {
			putBoolean(key, (Boolean) value);
		} else {
			putString(key, value.toString());
		}
	}
951426
public Element attribute(String attribute, long value)
    {
        if (attributeMap==null)
            attributeMap=new Hashtable(10);
        
        attributeMap.put(attribute,Long.toString(value));
        return this;
    }